1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-18 06:03:39 +03:00
one/share/pkgs/CentOS7/opennebula-scheduler.service
Javi Fontan 23939000b7 feature #2697: add systemd init scripts for CentOS 7
Based on openSUSE systemd scripts by Robert Schweikert

*.service files go in /lib/systemd/system
opennebula.conf goes in /lib/tmpfiles.d

sunstone, oneflow and onegate lose the *.error log files. That information
can be retrieved using systemctl status, for example for sunstone:

systemctl status -l opennebula-sunstone
2014-11-26 18:14:52 +01:00

21 lines
353 B
Desktop File

[Unit]
Description=OpenNebula Cloud Scheduler Daemon
After=syslog.target
After=network.target
After=remote-fs.target
After=opennebula.service
BindTo=opennebula.service
[Service]
Type=simple
Group=oneadmin
User=oneadmin
ExecStart=/usr/bin/mm_sched
ExecStop=/bin/kill -TERM $MAINPID
PIDFile=/var/run/one/sched.pid
[Install]
WantedBy=multi-user.target