Systemd and init files created
This commit is contained in:
12
init.sh
Executable file
12
init.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
make
|
||||
|
||||
sudo cp ncsambawatcher /usr/bin/
|
||||
sudo chmod +x /usr/bin/ncsambawatcher
|
||||
|
||||
sudo cp configs/ncsambawatcher.service /etc/systemd/system
|
||||
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable ncsambawatcher.service
|
||||
sudo systemctl start ncsambawatcher.service
|
||||
Reference in New Issue
Block a user