]> git.proxmox.com Git - mirror_lxcfs.git/blob - config/init/upstart/lxcfs.conf
set oom_score_adj of lxcfs process to -1000
[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 starting lxc or starting lxd or runlevel [2345]
5 stop on runlevel [06]
6
7 oom score -1000
8 respawn
9
10 pre-start script
11 [ ! -e /run/container_type ] || { stop; exit 0; }
12 end script
13
14 exec /usr/bin/lxcfs /var/lib/lxcfs
15
16 post-stop script
17 [ -e /run/container_type ] && exit
18
19 # Cleanup in case of crash
20 fusermount -u /var/lib/lxcfs 2> /dev/null || true
21 [ -L /etc/mtab ] || \
22 sed -i "/^lxcfs \/var\/lib\/lxcfs fuse.lxcfs/d" /etc/mtab
23 end script