Files
one/share/pkgs/CentOS7/opennebula.service
T
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

26 lines
635 B
Desktop File

[Unit]
Description=OpenNebula Cloud Controller Daemon
After=syslog.target
After=network.target
After=remote-fs.target
After=mariadb.service
Before=opennebula-scheduler.service
BindTo=opennebula-scheduler.service
[Service]
Type=simple
Group=oneadmin
User=oneadmin
# Start daemon in forground mode, when starting as forking process the
# daemon shuts down without obvious reason.
ExecStart=/usr/bin/oned -f
# Log file location must exist
ExecStartPre=/bin/mkdir -p /var/log/one
ExecStartPre=/bin/chown oneadmin:oneadmin /var/log/one
ExecStop=/bin/kill -TERM $MAINPID
PIDFile=/var/run/one/oned.pid
[Install]
WantedBy=multi-user.target