mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
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
26 lines
635 B
Desktop File
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
|