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-flow.service
2022-05-09 13:42:50 +02:00

21 lines
515 B
Desktop File

[Unit]
Description=OpenNebula Flow Service
After=syslog.target network.target
After=opennebula.service
AssertFileNotEmpty=/var/lib/one/.one/oneflow_auth
[Service]
Type=simple
Group=oneadmin
User=oneadmin
ExecStartPre=-/usr/sbin/logrotate -f /etc/logrotate.d/opennebula-flow -s /var/lib/one/.logrotate.status
ExecStart=/usr/bin/ruby /usr/lib/one/oneflow/oneflow-server.rb
StartLimitInterval=60
StartLimitBurst=3
Restart=on-failure
RestartSec=5
SyslogIdentifier=opennebula-flow
[Install]
WantedBy=multi-user.target