From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 18 Aug 2005 17:05:35 +0400 From: "Dmitry V. Levin" To: ALT Devel discussion list Subject: Re: [devel] =?koi8-r?B?98/Q0s/TINDS?= =?koi8-r?Q?=CF?= initscripts Message-ID: <20050818130535.GC3790@basalt.office.altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <20050817234659.4627ec3b@shrek.msk.menatepspb.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="s9fJI615cBHmzTOP" Content-Disposition: inline In-Reply-To: <20050817234659.4627ec3b@shrek.msk.menatepspb.com> X-fingerprint: 9658 398D 181B 1200 8FC5 26B8 F6F8 846B C1E2 3429 Cc: X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Aug 2005 13:05:36 -0000 Archived-At: List-Archive: List-Post: --s9fJI615cBHmzTOP Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 17, 2005 at 11:46:59PM +0400, vserge wrote: > =F0=D2=C9=D7=C5=D4=D3=D4=D7=D5=C0 >=20 > =F0=D2=C9 =CE=C1=D0=C9=D3=C1=CE=C9=C9 =C9=CE=C9=D4=D3=CB=D2=C9=D0=D4=C1 = =C4=CC=D1 HPLIP c=D4=CF=CC=CB=CE=D5=CC=D3=D1 =D3=CF =D3=CC=C5=C4=D5=C0=DD= =C5=CA =D0=D2=CF=C2=CC=C5=CD=CF=CA > =C9 =D3=CF=CF=D4=D7=C5=D4=D3=D4=D7=C5=CE=CE=CF =D4=D2=C5=C2=D5=C5=D4=D3= =D1 =D0=CF=CD=CF=DD=D8 =C9=CC=C9 =D2=C1=DA=DF=D1=D3=CE=C5=CE=C9=D1: >=20 > =F0=D2=CF=C2=CC=C5=CD=C1: > =C9=CD=C5=C5=CD =D3=CB=D2=C9=D0, =CE=C1=D0=C9=D3=C1=CE=CE=D9=CA =CE=C1 py= thon, =CB=CF=D4=CF=D2=D9=CA =DA=C1=D0=D5=D3=CB=C1=C5=D4=D3=D1 =CB=C1=CB =C4= =C5=CD=CF=CE=20 > =D7 =DA=C1=C7=CF=CC=CF=D7=CB=C5 =D3=CB=D2=C9=D0=D4=C1 =C9=CD=C5=C5=CD: > #> head /usr/share/hplip/hpssd.py=20 > #!/usr/bin/env python > # >=20 > =D7 =C9=CE=C9=D4=D3=CB=D2=C9=D0=D4=C5 =D0=D2=CF=D0=C9=D3=D9=D7=C1=C5=CD = =D3=CF=CF=D4=D7=C5=D4=D3=D4=D7=C5=CE=CE=CF: > HPSSD_PIDFILE=3D/var/run/hpssd.pid > HPSSD_LOCKFILE=3D/var/lock/subsys/hpssd > HPSSD=3D/usr/share/hplip/hpssd.py >=20 > start_daemon --pidfile "$HPSSD_PIDFILE" --lockfile "$HPSSD_LOCKFILE" > --expect-user root -- $HPSSD >=20 > stop_daemon --pidfile "$HPSSD_PIDFILE" --lockfile "$HPSSD_LOCKFILE" > --expect-user root -- $HPSSD >=20 > status --pidfile "$HPSSD_PIDFILE" --expect-user root -- $HPSSD >=20 > =F0=D2=C9 =DC=D4=CF=CD =D3=CB=D2=C9=D0=D4 stop =C9 status =CE=C5 =CF=D4= =D2=C1=C2=C1=D4=D9=D7=C1=C0=D4 =CB=C1=CB =CE=C1=C4=CF, =D4.=C5. > #> service hplip status > hpssd.py is dead, but stale PID file exists =F5 =CD=C5=CE=D1 =D4=C1=CB=CF=C5 =CF=DD=D5=DD=C5=CE=C9=C5, =DE=D4=CF =D0=D2= =CF=C7=D2=C1=CD=CD=C1, =CB=CF=D4=CF=D2=D5=C0 =CE=C1=C4=CF =C9=D3=CB=C1=D4= =D8, =CE=C1=DA=D9=D7=C1=C5=D4=D3=D1 /usr/bin/python. =EE=C1=D0=D2=C9=CD=C5=D2, =D7 /etc/init.d/mailman status =D2=C5=C1=CC=C9=DA= =CF=D7=C1=CE =D4=C1=CB: stat() { status --pidfile "$MAILMANPID" --expect-user mailman -- $PYTHON RETVAL=3D$? return $RETVAL } > =EE=CF =C5=D3=CC=C9 =D7 =C9=CE=C9=D4=D3=CB=D2=C9=D0=D4=C5 =DA=C1=CD=C5=CE= =C9=D4=D8 =D7=D9=DA=CF=D7 stop_daemon =CE=C1 =D0=D2=D1=CD=CF=CA =D7=D9=DA= =CF=D7 > start-stop-daemon, =D4=CF =D7=D3=C5 =D2=C1=C2=CF=D4=C1=C5=D4 >=20 > start-stop-daemon --pidfile "$HPSSD_PIDFILE" --user root --stop $HPSSD =F1 =C2=D9 =CE=C5 =D3=D4=C1=CC =C9=D3=D0=CF=CC=D8=DA=CF=D7=C1=D4=D8 start-s= top-daemon =CE=C1=D0=D2=D1=CD=D5=C0 =C2=C5=DA =CE=C5=CF=C2=C8=CF=C4=C9=CD= =CF=D3=D4=C9. --=20 ldv --s9fJI615cBHmzTOP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD4DBQFDBIef9viEa8HiNCkRAjXqAJ9zwYZ1AMo9lQ+1F1a5q6el22rmFACXSZfi ibA3OHf0ENSoiRqS0kB6Ew== =wzs1 -----END PGP SIGNATURE----- --s9fJI615cBHmzTOP--