Skip to content

Commit 359c932

Browse files
committed
Add systemd service for client
1 parent 4850d38 commit 359c932

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/tools/build_clientdeb.sh

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ mkdir -p root
4040
cd root
4141
mkdir -p "./usr/sbin/"
4242
cp "../../${PACKAGE_NAME}" "./usr/sbin/"
43+
mkdir -p "./usr/lib/systemd/system/"
44+
cp "../reqrypt.service" "./usr/lib/systemd/system/"
4345
tar cz --owner root --group root -f ../data.tar.gz .
4446
md5sum `find ../root/ -type f -printf "%P "` > md5sums
4547
mv md5sums ../client.deb/

src/tools/reqrypt.service

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[Unit]
2+
Description=ReQrypt Client
3+
After=network.target
4+
5+
[Service]
6+
Type=simple
7+
User=root
8+
PIDFile=/run/reqrypt.pid
9+
ExecStart=/usr/bin/reqrypt --no-launch-ui
10+
ExecStop=/bin/kill -s INT $MAINPID
11+
12+
[Install]
13+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)