19 lines
558 B
SYSTEMD
19 lines
558 B
SYSTEMD
[Unit]
|
|
Description=OpenNebula Node starter
|
|
After=opennebula.service opennebula-sunstone.service libvirt-bin.service
|
|
ConditionPathExists=/etc/eole/release
|
|
After=multi-user.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
Environment=CREDS=/var/lib/one/.one/one_auth
|
|
Environment=ENDPOINT=http://127.0.0.1:2633/RPC2
|
|
TimeoutSec=1min
|
|
RemainAfterExit=yes
|
|
Restart=no
|
|
ExecStart=/usr/share/eole/sbin/onevm-all -t 20 -w -c ${CREDS} -e ${ENDPOINT} -a "resume"
|
|
ExecStop=/usr/share/eole/sbin/onevm-all -t 20 -w -c ${CREDS} -e ${ENDPOINT} -a "suspend"
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|