[CentOS] daemon in /etc/init.d/functions creates no pifile?
skotthof
sebastian.kotthoff at rz.uni-mannheim.deTue Jun 2 09:06:59 UTC 2015
- Previous message: [CentOS] [OT] recover/reset 'owner' password on win7 os
- Next message: [CentOS] daemon in /etc/init.d/functions creates no pifile?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, we started using centos7 to run kvm+libvirt. For novnc to virtual machines I like to start websockify as a daemon by libvirt (as a hook) Under Debian I used the line: # start-stop-daemon --start --chuid $RUNUSER --make-pidfile --pidfile $PIDFILE --startas $PROGRAM -- $OPTIONS which creates a nice pidfile. In Centos I figured out, to include /etc/init.d/functions and I tried: # daemon --user $RUNUSER --pidfile=$PIDFILE $PROGRAM $OPTIONS But this seems not to create a pidfile at all. It checks only if a pidile exist already. This is executed at the end # $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*" Am I missed something? Thanks, Sebastian -- Sebastian Kotthoff Rechenzentrum Universität Mannheim B6, 23-29; Building B; Room 1.10 68159 Mannheim Tel: +49 621 181 2516 Fax: +49 621 181 2682
- Previous message: [CentOS] [OT] recover/reset 'owner' password on win7 os
- Next message: [CentOS] daemon in /etc/init.d/functions creates no pifile?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list