2 Commits

Author SHA1 Message Date
a6fb133216 fix: remove path for binaries in unit files
Some checks failed
Continuous Delivery / build_n_upload (push) Has been cancelled
2026-04-12 17:59:01 +02:00
fc6ce6f472 fix: stop services on postun scriptlet
Some checks failed
Continuous Delivery / build_n_upload (push) Has been cancelled
2026-04-12 17:01:55 +02:00
3 changed files with 9 additions and 3 deletions

View File

@@ -4,8 +4,8 @@ Documentation=https://gitea.com/gitea/act_runner
After=gitea.service
[Service]
ExecStart=/usr/sbin/act_runner daemon
ExecReload=/bin/kill -s HUP $MAINPID
ExecStart=act_runner daemon
ExecReload=kill -s HUP $MAINPID
WorkingDirectory=/var/lib/actrunner%i
TimeoutSec=0
RestartSec=10

View File

@@ -9,7 +9,7 @@ User=gitea
Group=gitea
WorkingDirectory=/var/lib/gitea/
Environment=GITEA_WORK_DIR=/var/lib/gitea
ExecStart=/usr/sbin/gitea_web_notify
ExecStart=gitea_web_notify
Restart=always
NotifyAccess=all

View File

@@ -111,6 +111,12 @@ done
# Display commands and exit on error
set -xe
# Stop services
systemctl stop gitea.service
for i in $(seq 1 4); do
systemctl stop actrunner@$i
done
# If uninstalling, then delete users and db
if [ $1 == 0 ]; then
# Remove gitea user if existing