Philippe Caseiro
8ef200b6b2
Les actions ont changés sur cette version, "resume" résoud tout :) Le service doit également démarrer après libvirt et s'arrêter avant.
17 lines
484 B
Desktop File
17 lines
484 B
Desktop File
[Unit]
|
|
Description=OpenNebula Node starter
|
|
After=opennebula.service opennebula-sunstone.service libvirt-bin.service
|
|
|
|
[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 -w -c ${CREDS} -e ${ENDPOINT} -a "resume"
|
|
ExecStop=/usr/share/eole/sbin/onevm-all -w -c ${CREDS} -e ${ENDPOINT} -a "suspend"
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|