diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2019-06-08 20:31:30 +0200 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2019-06-08 22:31:49 +0200 |
commit | 212efc4f52dd9979511b871a560356c3e7b7ad6b (patch) | |
tree | 83415ed697c7fadc604bd79f7238b1fb3a8ce73c /packaging/systemd | |
parent | [Packaging] Add updated launchd scripts (diff) | |
download | deluge-212efc4f52dd9979511b871a560356c3e7b7ad6b.tar.xz deluge-212efc4f52dd9979511b871a560356c3e7b7ad6b.zip |
[Packaging] Move user out of systemd files and add to tarball
With the `deluge` user specified in the unit files it ties it to
that user and makes it unavailable for re-use by systemd user instance.
Remove the user and group from the unit files and put them in a separate
`user.conf` file that should be installed as an override file e.g. for
deluged.service this would be placed as follows:
/etc/systemd/service/deluge.service.d/user.conf
Add the systemd files to the tarball for package maintainers.
Closes: #2034
Diffstat (limited to 'packaging/systemd')
-rw-r--r-- | packaging/systemd/deluge-web.service | 3 | ||||
-rw-r--r-- | packaging/systemd/deluged.service | 2 | ||||
-rw-r--r-- | packaging/systemd/user.conf | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/packaging/systemd/deluge-web.service b/packaging/systemd/deluge-web.service index 9e8ca5eef..b74c0ada8 100644 --- a/packaging/systemd/deluge-web.service +++ b/packaging/systemd/deluge-web.service @@ -6,9 +6,6 @@ Wants=deluged.service [Service] Type=simple - -User=deluge -Group=deluge UMask=027 ExecStart=/usr/bin/deluge-web -d diff --git a/packaging/systemd/deluged.service b/packaging/systemd/deluged.service index 7541548d4..fa00de0fe 100644 --- a/packaging/systemd/deluged.service +++ b/packaging/systemd/deluged.service @@ -5,8 +5,6 @@ After=network-online.target [Service] Type=simple -User=deluge -Group=deluge UMask=007 ExecStart=/usr/bin/deluged -d diff --git a/packaging/systemd/user.conf b/packaging/systemd/user.conf new file mode 100644 index 000000000..ae59820c4 --- /dev/null +++ b/packaging/systemd/user.conf @@ -0,0 +1,4 @@ +# Override service user +[Service] +User=deluge +Group=deluge |