summarylogtreecommitdiffstats
path: root/opennebula-sunstone.service
blob: ca5ad85e34a2f405cda03de52d2c869e484dad2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[Unit]
Description=OpenNebula Web Interface
After=syslog.target network.target remote-fs.target opennebula.service opennebula-novnc.service
BindsTo=opennebula.service

[Service]
User=oneadmin
Group=cloud
Type=simple
PermissionsStartOnly=true

ExecStart=/usr/bin/ruby /usr/lib/one/sunstone/sunstone-server.rb
ExecStartPre=/usr/bin/logrotate -s /tmp/logrotate.state -f /etc/logrotate.d/opennebula
PIDFile=/var/run/one/sunstone.pid
Restart=on-abnormal

[Install]
WantedBy=multi-user.target