Parent Directory
|
Revision Log
Fix pid directory detection, revision bump, drop old revisions wrt bug #448498 (Portage version: 2.2.0_alpha144/cvs/Linux x86_64, unsigned Manifest commit)
| 1 | #!/sbin/runscript |
| 2 | # Copyright 1999-2012 Gentoo Foundation |
| 3 | # Distributed under the terms of the GNU General Public License v2 |
| 4 | |
| 5 | depend() { |
| 6 | need net |
| 7 | } |
| 8 | |
| 9 | start() { |
| 10 | # create piddir if necessary, bug #448498 |
| 11 | local piddir=$(dirname ${ERR_PID_FILE}) |
| 12 | checkpath -q -d -o err:err -m 0770 "${piddir}" || { |
| 13 | eend 1 |
| 14 | return 1 |
| 15 | } |
| 16 | |
| 17 | ebegin "Starting errd" |
| 18 | start-stop-daemon --start --make-pidfile --pidfile ${ERR_PID_FILE} --background --quiet -u ${ERR_USER}:${ERR_GROUP} \ |
| 19 | --exec /usr/bin/python2 -- /usr/bin/err.py -c ${ERR_CONFIG_PATH} |
| 20 | eend $? |
| 21 | } |
| 22 | |
| 23 | stop() { |
| 24 | ebegin "Stopping errd" |
| 25 | start-stop-daemon --stop --pidfile ${ERR_PID_FILE} |
| 26 | eend $? |
| 27 | } |
| ViewVC Help | |
| Powered by ViewVC 1.1.13 |