Compare commits

..

2 Commits

Author SHA1 Message Date
df6d009ce7 update-release script 2025-06-22 19:47:35 +02:00
cd29f363fa systemd service 2025-06-22 19:44:27 +02:00
3 changed files with 24 additions and 1 deletions

View File

@ -21,7 +21,8 @@ watcher: watcher.c
clean:
go clean
rm watcher
rm -f watcher
rm -f ltscleanerd
watch: all
./watcher . sh -c "make BUILD_MODE=$(BUILD_MODE) && ./lts"

9
scripts/update-release Normal file
View File

@ -0,0 +1,9 @@
#!/bin/sh
systemctl stop lts.service
make clean
make -B BUILD_MODE=RELEASE
cp ./lts /usr/local/bin/lts
cp ./ltscleanerd /usr/local/bin/ltscleanerd
systemctl start lts.service
systemctl status lts.service

13
systemd/lts.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=Lair Temporary Storage server
After=network.target
[Service]
Type=simple
Restart=always
User=root
WorkingDirectory=/var/lib/lts
ExecStart=/usr/local/bin/lts
[Install]
WantedBy=multi-user.target