1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-21 18:03:38 +03:00
one/share/pkgs/services/systemd/opennebula-hem.service
2022-05-09 13:42:50 +02:00

21 lines
515 B
Desktop File

[Unit]
Description=OpenNebula Hook Execution Service
After=syslog.target network.target
After=opennebula.service
[Service]
Type=simple
Group=oneadmin
User=oneadmin
EnvironmentFile=-/var/run/one/ssh-agent.env
ExecStartPre=-/usr/sbin/logrotate -f /etc/logrotate.d/opennebula-hem -s /var/lib/one/.logrotate.status
ExecStart=/usr/bin/ruby /usr/lib/one/onehem/onehem-server.rb
StartLimitInterval=60
StartLimitBurst=3
Restart=on-failure
RestartSec=5
SyslogIdentifier=opennebula-hem
[Install]
WantedBy=multi-user.target