mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-18 06:03:39 +03:00
33 lines
1.3 KiB
Desktop File
33 lines
1.3 KiB
Desktop File
[Unit]
|
|
Description=OpenNebula Cloud Controller Daemon
|
|
After=syslog.target network.target remote-fs.target
|
|
After=mariadb.service mysql.service
|
|
After=opennebula-ssh-agent.service
|
|
Wants=opennebula-scheduler.service opennebula-hem.service
|
|
Wants=opennebula-ssh-agent.service
|
|
Wants=opennebula-ssh-socks-cleaner.timer
|
|
Wants=opennebula-showback.timer
|
|
|
|
[Service]
|
|
Type=notify
|
|
Group=oneadmin
|
|
User=oneadmin
|
|
Environment="PATH=/usr/lib/one/sh/override:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
EnvironmentFile=-/var/run/one/ssh-agent.env
|
|
ExecStartPre=-/usr/sbin/logrotate -f /etc/logrotate.d/opennebula -s /var/lib/one/.logrotate.status
|
|
ExecStartPre=-/bin/sh -c 'for file in /var/log/one/oned*.log; do if [ ! -f "$file.gz" ]; then gzip -9 "$file"; fi; done'
|
|
ExecStartPre=-/bin/sh -c 'for file in /var/log/one/monitor*.log; do if [ ! -f "$file.gz" ]; then gzip -9 "$file"; fi; done'
|
|
ExecStartPre=-/bin/sh -c 'for file in /var/log/one/vcenter_monitor*.log; do if [ ! -f "$file.gz" ]; then gzip -9 "$file"; fi; done'
|
|
ExecStartPre=/usr/share/one/pre_cleanup
|
|
ExecStart=/usr/bin/oned -f
|
|
ExecStopPost=/usr/share/one/follower_cleanup
|
|
PIDFile=/var/lock/one/one
|
|
StartLimitInterval=60
|
|
StartLimitBurst=3
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
SyslogIdentifier=opennebula
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|