Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
powerman
powerman-piddir.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File powerman-piddir.patch of Package powerman
--- scripts/powerman.in +++ scripts/powerman.in @@ -34,7 +34,8 @@ DAEMON="$sbindir/powermand" #DAEMON_ARGS= CONFIG=$sysconfdir/powerman/powerman.conf -PIDFILE="$localstatedir/run/powerman/powermand.pid" +PIDDIR="$localstatedir/run/powerman" +PIDFILE="$PIDDIR/powermand.pid" #NICE= USER=@RUN_AS_USER@ #SIGHUP_RELOAD= @@ -53,7 +54,10 @@ SCRIPT_NAME="`basename \"$0\" .init | sed 's/^[SK][0-9][0-9]*//'`" SIGTERM_TIMEOUT="3" STATUS=0 - + if [ ! -d "$PIDDIR" ] ; then + mkdir "$PIDDIR" + chown $USER $PIDDIR + fi # Read configuration defaults to override variables: # $DAEMON_ARGS, $CONFIG, $PIDFILE, $USER, $NICE, $SIGHUP_RELOAD ##
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor