~ubuntu-branches/ubuntu/gutsy/hplip/gutsy-security

« back to all changes in this revision

Viewing changes to debian/hplip.init

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2006-09-15 18:00:07 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060915180007-96mez3nck3oy5wij
Tags: 1.6.7-2ubuntu1
* Merge from debian unstable.
* Removed patches 50_ui-supportform-cleanups.dpatch and
  55_ui-supportform-debian.dpatch, there is no support window in the HP
  toolbox any more.
* HPLIP (file io/hpiod/usbext.h) includes linux/compiler.h which is not
  part of Ubuntu Linux and not needed. Removed the include with patch
  80_no-compiler.h.dpatch.
* debian/control: Let the "Conflicts:" of hpijs-ppds be only a "Breaks:"
  to facilitate an update from the previous version when both hpijs and
  hpijs-ppds are installed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# hplip initscript for the HP Linux Printing and Imaging System
3
 
# Copyright (c) 2004 by Henrique de Moraes Holschuh <hmh@debian.org>
 
3
# Copyright (c) 2004-2006 by Henrique de Moraes Holschuh <hmh@debian.org>
4
4
# Distributed under the GPLv2 or newer
5
5
#
6
 
# $Id: hplip.init,v 1.13 2006/05/10 21:12:45 hmh Exp $
 
6
# $Id: hplip.init,v 1.15 2006/08/07 20:47:11 hmh Exp $
7
7
 
8
8
PATH=/sbin:/bin:/usr/sbin:/usr/bin
9
9
DESC="HP Linux Printing and Imaging System"
21
21
NAME2=hpssd
22
22
PROCNAME2=python
23
23
PIDFILE2=/var/run/hplip/hpssd.pid
 
24
FILES2="/var/run/hplip/hpssd.pid /var/run/hplip/hpssd.port"
24
25
 
25
26
HPIODOPTIONS=
26
27
HPSSDOPTIONS=
142
143
                "${HPIODOPTIONS}" && \
143
144
           {
144
145
             log_progress_msg "${NAME2}"
 
146
             for i in ${FILES2} ; do
 
147
                [ -f "$i" ] && chown "${SUID_USER}:${SGID_GROUP}" "$i"
 
148
                :
 
149
             done
145
150
             start_daemon "${DAEMON2}" "${PIDFILE2}" "${NAME2}" \
146
151
                "${PROCNAME2}" "--chuid ${SUID_USER} --group ${SGID_GROUP}" \
147
152
                "${HPSSDOPTIONS}"