eole-one-master/init/onenode.service
Philippe Caseiro 0cac94f8e4 Ajout du .service systemd pour onenode
Mise en pause et reprise des VM lors des reboots.

ref #16800 @45m
2016-07-22 14:09:54 +02:00

16 lines
388 B
Desktop File

[Unit]
Description=OpenNebula Node starter
After=opennebula.service opennebula-sunstone.service
[Service]
Type=oneshot
Environment=CREDS='/var/lib/one/.one/one_auth'
TimeoutSec=1min
RemainAfterExit=yes
Restart=no
ExecStart=/usr/share/eole/sbin/onevm-all -w -c ${CREDS} -a "resume"
ExecStop=/usr/share/eole/sbin/onevm-all -w -c ${CREDS} -a "suspend"
[Install]
WantedBy=multi-user.target