Skip to content

Commit

Permalink
run
Browse files Browse the repository at this point in the history
  • Loading branch information
nyanofthemoon committed Sep 30, 2018
1 parent 2285c9b commit 6369f9c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
Empty file added nu.pid
Empty file.
19 changes: 19 additions & 0 deletions nu.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[Unit]
Description=Nu
After=network.target

[Service]
Type=forking
ExecStart=/home/pi/Nu/run.sh
ExecStop=/bin/kill -s TERM $MAINPID
PIDFile=/home/pi/Nu/nu.pid
TimeoutStopSec=0
Restart=always
User=pi
UMask=007
ReadOnlyDirectories=/
ReadWriteDirectories=/home/pi/Nu

[Install]
WantedBy=multi-user.target
Alias=nu.service
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

clear & python -m nu -v
cd /home/pi/Nu & python3.7 -m nu

0 comments on commit 6369f9c

Please sign in to comment.