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-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
|
|
|
TimeoutSec=1min
|
|
|
|
RemainAfterExit=yes
|
|
|
|
Restart=no
|
2016-09-14 11:13:39 +02:00
|
|
|
ExecStart=/usr/share/eole/sbin/onevm-all -w -c ${CREDS} -e ${ENDPOINT} -a "resume"
|
|
|
|
ExecStop=/usr/share/eole/sbin/onevm-all -w -c ${CREDS} -e ${ENDPOINT} -a "suspend"
|
2016-07-22 14:09:54 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|