Add packaging stuff (just .deb for now)
This commit is contained in:
10
etc/linkwallet.service
Normal file
10
etc/linkwallet.service
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=linkwallet
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/linkwallet -db-path /var/lib/linkwallet/linkwallet.db
|
||||
User=linkwallet
|
||||
Group=linkwallet
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
5
etc/postinstall.sh
Normal file
5
etc/postinstall.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
systemctl daemon-reload
|
||||
systemctl enable linkwallet
|
||||
systemctl start linkwallet
|
||||
4
etc/postremove.sh
Normal file
4
etc/postremove.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
userdel linkwallet
|
||||
systemctl daemon-reload
|
||||
3
etc/preinstall.sh
Normal file
3
etc/preinstall.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
useradd linkwallet
|
||||
4
etc/preremove.sh
Normal file
4
etc/preremove.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
systemctl disable linkwallet
|
||||
systemctl stop linkwallet
|
||||
Reference in New Issue
Block a user