1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00

B #6282: Fix Incorrect configuration of systemd services (#2831)

This commit is contained in:
mkutouski 2023-11-22 13:45:36 +02:00 committed by GitHub
parent 217253794d
commit af6591e814
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 7 deletions

View File

@ -9,7 +9,7 @@ Type=simple
Group=oneadmin
User=oneadmin
ExecStartPre=-/usr/sbin/logrotate -f /etc/logrotate.d/opennebula-flow -s /var/lib/one/.logrotate.status
ExecStartPre=-sh 'gzip -9 /var/log/one/oneflow.log-* &'
ExecStartPre=-/bin/sh -c 'for file in /var/log/one/oneflow*.log; do if [ ! -f "$file.gz" ]; then gzip -9 "$file"; fi; done'
ExecStart=/usr/bin/ruby /usr/lib/one/oneflow/oneflow-server.rb
StartLimitInterval=60
StartLimitBurst=3

View File

@ -9,7 +9,7 @@ Type=simple
Group=oneadmin
User=oneadmin
ExecStartPre=-/usr/sbin/logrotate -f /etc/logrotate.d/opennebula-gate -s /var/lib/one/.logrotate.status
ExecStartPre=-sh 'gzip -9 /var/log/one/onegate.log-* &'
ExecStartPre=-/bin/sh -c 'for file in /var/log/one/onegate*.log; do if [ ! -f "$file.gz" ]; then gzip -9 "$file"; fi; done'
ExecStart=/usr/bin/ruby /usr/lib/one/onegate/onegate-server.rb
StartLimitInterval=60
StartLimitBurst=3

View File

@ -9,7 +9,7 @@ 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
ExecStartPre=-sh 'gzip -9 /var/log/one/onehem.log-* &'
ExecStartPre=-/bin/sh -c 'for file in /var/log/one/onehem*.log; do if [ ! -f "$file.gz" ]; then gzip -9 "$file"; fi; done'
ExecStart=/usr/bin/ruby /usr/lib/one/onehem/onehem-server.rb
StartLimitInterval=60
StartLimitBurst=3

View File

@ -7,7 +7,7 @@ Type=forking
Group=oneadmin
User=oneadmin
ExecStartPre=-/usr/sbin/logrotate -f /etc/logrotate.d/opennebula-novnc -s /var/lib/one/.logrotate.status
ExecStartPre=-sh 'gzip -9 /var/log/one/novnc.log-* &'
ExecStartPre=-/bin/sh -c 'for file in /var/log/one/novnc*.log; do if [ ! -f "$file.gz" ]; then gzip -9 "$file"; fi; done'
ExecStart=/usr/bin/novnc-server start
PIDFile=/var/lock/one/.novnc.lock
StartLimitInterval=60

View File

@ -9,7 +9,7 @@ Type=simple
Group=oneadmin
User=oneadmin
ExecStartPre=-/usr/sbin/logrotate -f /etc/logrotate.d/opennebula-scheduler -s /var/lib/one/.logrotate.status
ExecStartPre=-sh 'gzip -9 /var/log/one/sched.log-* &'
ExecStartPre=-/bin/sh -c 'for file in /var/log/one/sched*.log; do if [ ! -f "$file.gz" ]; then gzip -9 "$file"; fi; done'
ExecStart=/usr/bin/mm_sched
StartLimitInterval=60
StartLimitBurst=3

View File

@ -11,7 +11,7 @@ Group=oneadmin
User=oneadmin
AmbientCapabilities=CAP_NET_BIND_SERVICE
ExecStartPre=-/usr/sbin/logrotate -f /etc/logrotate.d/opennebula-sunstone -s /var/lib/one/.logrotate.status
ExecStartPre=-sh 'gzip -9 /var/log/one/sunstone.log-* &'
ExecStartPre=-/bin/sh -c 'for file in /var/log/one/sunstone*.log; do if [ ! -f "$file.gz" ]; then gzip -9 "$file"; fi; done'
ExecStart=/usr/bin/ruby /usr/lib/one/sunstone/sunstone-server.rb
ReadWriteDirectories=/var/lib/one /var/log/one/
ReadOnlyDirectories=-/var/lib/one/remotes

View File

@ -15,7 +15,9 @@ 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=-sh 'gzip -9 /var/log/one/oned.log-* /var/log/one/monitor.log-* /var/log/one/vcenter_monitor.log-* &'
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