1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

F #1473: Conditional service with SELinux workaround (#4871)

This commit is contained in:
Vlastimil Holer 2020-06-03 13:39:24 +02:00 committed by GitHub
parent 0e9d195e97
commit 830045e17e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,9 @@
[Unit]
Description=OpenNebula SSH persistent connection cleaner
ConditionDirectoryNotEmpty=/var/run/one/ssh-socks/
[Service]
Group=oneadmin
User=oneadmin
Type=oneshot
ExecStart=/usr/lib/one/sh/ssh-socks-cleaner
ExecStart=/bin/sh -c '/usr/lib/one/sh/ssh-socks-cleaner'