eole-one-master/init/onenode.service

16 lines
388 B
SYSTEMD
Raw Normal View History

[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