mirror of
https://github.com/taigrr/github-to-signal.git
synced 2026-04-02 03:09:09 -07:00
fix: use default.target for user systemd units
User units don't have multi-user.target. Also removed User/Group and hardening directives that don't apply to user services.
This commit is contained in:
@@ -6,18 +6,9 @@ Requires=signal-cli-bot.service
|
||||
[Service]
|
||||
Type=exec
|
||||
ExecStart=/usr/local/bin/github-to-signal
|
||||
WorkingDirectory=/etc/github-to-signal
|
||||
WorkingDirectory=/home/tai/code/foss/github-to-signal
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
# Hardening
|
||||
NoNewPrivileges=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=true
|
||||
PrivateTmp=true
|
||||
|
||||
User=signal-bot
|
||||
Group=signal-bot
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=default.target
|
||||
|
||||
@@ -9,15 +9,5 @@ ExecStart=/usr/local/bin/signal-cli -a +1YOURNUMBER daemon --http 127.0.0.1:8081
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
# Hardening
|
||||
NoNewPrivileges=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=read-only
|
||||
PrivateTmp=true
|
||||
ReadWritePaths=/home/signal-bot/.local/share/signal-cli
|
||||
|
||||
User=signal-bot
|
||||
Group=signal-bot
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=default.target
|
||||
|
||||
Reference in New Issue
Block a user