Browse Source

updated with systemd service installation and comment about it

master
Loki Verloren 1 year ago
parent
commit
c99bbf2144
3 changed files with 18 additions and 1 deletions
  1. 3
    1
      README.md
  2. 2
    0
      src/linux-install.sh
  3. 13
    0
      src/parallelcoind.service

+ 3
- 1
README.md View File

@@ -42,4 +42,6 @@ On Arch Linux this means you will need these packages:
42 42
     db4.8
43 43
     qt5 (select all when asked which packages to install)
44 44
 
45
-This branch of the repository only the linux build has been tested and there is a script in the `src/` directory called `linux-build.sh` which builds everything, installs the desktop files for the GUI wallet and then cleans up after itself.
45
+This branch of the repository only the linux build has been tested and there is a script in the `src/` directory called `linux-build.sh` which builds everything, installs the desktop files for the GUI wallet and then cleans up after itself.
46
+
47
+The installer also places a systemd service file to run the parallelcoin client as a service. Note that if it is running this way the Qt client will refuse to run without further configuration (maybe?)

+ 2
- 0
src/linux-install.sh View File

@@ -13,6 +13,8 @@ qmake
13 13
 make -j$(nproc)
14 14
 echo "Installing (you will need to enter your password for sudo)"
15 15
 sudo cp parallelcoind parallelcoin-qt /usr/local/bin/
16
+sudo cp parallelcoind.service /etc/systemd/system/
17
+sed "s/####/`whoami`/g"
16 18
 cp parallelcoin-qt.desktop $HOME/.local/share/applications/
17 19
 cp qt/res/images/Wallet_Logo.png $HOME/.local/share/icons/parallelcoin.png
18 20
 echo "cleaning up"

+ 13
- 0
src/parallelcoind.service View File

@@ -0,0 +1,13 @@
1
+[Unit]
2
+Description=Parallelcoin headless server
3
+After=network.target
4
+
5
+[Service]
6
+Type=simple
7
+User=####
8
+WorkingDirectory=/home/####
9
+ExecStart=/usr/local/bin/parallelcoind
10
+Restart=on-failure # or always, on-abort, etc
11
+
12
+[Install]
13
+WantedBy=multi-user.target

Loading…
Cancel
Save