]> git.proxmox.com Git - mirror_lxcfs.git/blob - config/init/upstart/lxcfs.conf
Simplify the upstart job
[mirror_lxcfs.git] / config / init / upstart / lxcfs.conf
1 description "FUSE filesystem for LXC"
2 author "Stéphane Graber <stgraber@ubuntu.com>"
3
4 start on not-container and (starting lxc or runlevel [2345])
5 stop on runlevel [06]
6
7 respawn
8
9 exec /usr/bin/lxcfs /var/lib/lxcfs
10
11 post-stop script
12 # Cleanup in case of crash
13 fusermount -u /var/lib/lxcfs 2> /dev/null || true
14 [ -L /etc/mtab ] || \
15 sed -i "/^lxcfs \/var\/lib\/lxcfs fuse.lxcfs/d" /etc/mtab
16 end script