[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt-users] upstart script for virtlockd



On 10/21/2013 07:10 AM, NEVEU Stephane wrote:
> Hi Eric,
> 
> Here is my try to write a quick upstart script for virtlockd. 
> It should be named /etc/init/virtlockd.conf, then : ln -s /lib/init/upstart-job /etc/init.d/virtlockd
> It seems to work for me :
> 
> # virtlockd - Locking daemon for libvirt
> description     "virtlockd"
> 
> start on filesystem and runlevel [2345]
> stop on starting rc RUNLEVEL=[016]
> 
> pre-start script
>     test -x /usr/sbin/virtlockd || { stop; exit 0; }
>     test -c /dev/null || { stop; exit 0; }
> end script
> 
> script
>     start-stop-daemon --start --make-pidfile --pidfile /var/run/virtlockd.pid --exec /usr/sbin/virtlockd >> /var/log/libvirt/virtlockd.log 2>&1
> end script

Would you mind resubmitting this as an actual patch?
http://libvirt.org/hacking.html has more hints on setting up a
development environment.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]