2016-07-22 14:09:54 +02:00
|
|
|
[Unit]
|
|
|
|
Description=OpenNebula Node starter
|
2016-10-10 16:46:14 +02:00
|
|
|
After=opennebula.service opennebula-sunstone.service libvirt-bin.service
|
2016-11-22 10:53:50 +01:00
|
|
|
ConditionPathExists=/etc/eole/release
|
2017-05-03 11:40:08 +02:00
|
|
|
After=multi-user.target
|
2016-07-22 14:09:54 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2016-09-14 11:13:39 +02:00
|
|
|
Environment=CREDS=/var/lib/one/.one/one_auth
|
|
|
|
Environment=ENDPOINT=http://127.0.0.1:2633/RPC2
|
2016-07-22 14:09:54 +02:00
|
|
|
RemainAfterExit=yes
|
|
|
|
Restart=no
|
2017-12-20 16:32:13 +01:00
|
|
|
ExecStart=/usr/share/eole/sbin/onevm-all -c ${CREDS} -e ${ENDPOINT} -a "resume"
|
|
|
|
# Permit to start remaining VMs at distance by a simple restart
|
|
|
|
ExecReload=/usr/share/eole/sbin/onevm-all -c ${CREDS} -e ${ENDPOINT} -a "resume"
|
|
|
|
ExecStop=/usr/share/eole/sbin/onevm-all -w 300 -c ${CREDS} -e ${ENDPOINT} -a "suspend"
|
|
|
|
# Keep some marging with timeout
|
|
|
|
TimeoutStartSec=120s
|
|
|
|
TimeoutStopSec=360s
|
2016-07-22 14:09:54 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|