From 985c51b440604af164576ad97175158143d22c7e Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 24 Apr 2024 09:57:30 +0100 Subject: Move service file to contrib/systemd --- .github/workflows/release.yml | 2 +- contrib/sentrum.service | 16 ---------------- contrib/systemd/sentrum.service | 16 ++++++++++++++++ 3 files changed, 17 insertions(+), 17 deletions(-) delete mode 100644 contrib/sentrum.service create mode 100644 contrib/systemd/sentrum.service diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d0e3bab..8d8d588 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,7 +35,7 @@ jobs: mkdir ${{ matrix.name }} cp target/release/${{ matrix.bin }} ${{ matrix.name }} cp sentrum.sample.toml ${{ matrix.name }} - cp contrib/sentrum.service ${{ matrix.name }} + cp -r contrib ${{ matrix.name }} if [[ "${{ matrix.os }}" == "windows-latest" ]] then 7z a ${{ matrix.name }}.zip ${{ matrix.name }} diff --git a/contrib/sentrum.service b/contrib/sentrum.service deleted file mode 100644 index 2d27524..0000000 --- a/contrib/sentrum.service +++ /dev/null @@ -1,16 +0,0 @@ -[Unit] -Description=sentrum daemon - -[Service] -ExecStart=/usr/bin/sentrum -User=sentrum - -# Hardening -PrivateTmp=true -ProtectSystem=full -NoNewPrivileges=true -PrivateDevices=true -MemoryDenyWriteExecute=true - -[Install] -WantedBy=multi-user.target diff --git a/contrib/systemd/sentrum.service b/contrib/systemd/sentrum.service new file mode 100644 index 0000000..2d27524 --- /dev/null +++ b/contrib/systemd/sentrum.service @@ -0,0 +1,16 @@ +[Unit] +Description=sentrum daemon + +[Service] +ExecStart=/usr/bin/sentrum +User=sentrum + +# Hardening +PrivateTmp=true +ProtectSystem=full +NoNewPrivileges=true +PrivateDevices=true +MemoryDenyWriteExecute=true + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3-70-g09d2