diff options
author | sulaweyo | 2017-08-24 17:54:02 +0200 |
---|---|---|
committer | sulaweyo | 2017-08-24 17:54:02 +0200 |
commit | c0355bdaf49393deef8d4586a88cfdd276bba67d (patch) | |
tree | 62b1379c8ff4efc0fc7b599da2df2870d6cafac7 /opennebula-onegate.service | |
parent | 936ed6835c0bd4124a34ebf32cfd57a585d4fef5 (diff) | |
download | aur-c0355bdaf49393deef8d4586a88cfdd276bba67d.tar.gz |
Service units are now a lot closer to upstream
Logrotate and tmpfiles taken over from upstream
Diffstat (limited to 'opennebula-onegate.service')
-rw-r--r-- | opennebula-onegate.service | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/opennebula-onegate.service b/opennebula-onegate.service index aa3644f24d66..faec24cdc58d 100644 --- a/opennebula-onegate.service +++ b/opennebula-onegate.service @@ -1,15 +1,16 @@ [Unit] -Description=OpenNebula onegate Server -After=network.target local-fs.target remote-fs.target opennebula.service -Requires=opennebula.service +Description=OpenNebula Gate Service +After=syslog.target network.target remote-fs.target opennebula.service +BindsTo=opennebula.service [Service] User=oneadmin Group=cloud -Type=forking -PermissionsStartOnly=true -ExecStart=/usr/bin/onegate-server start -ExecStop=/usr/bin/onegate-server stop +Type=simple + +ExecStart=/usr/bin/ruby /usr/lib/one/onegate/onegate-server.rb +ExecStop=/bin/kill -TERM $MAINPID +PIDFile=/var/run/one/onegate.pid Restart=on-abnormal [Install] |