[TASK] Rename main python file, add shell script to register with systemd
This commit is contained in:
parent
4fd639f02e
commit
322dee753a
|
@ -17,3 +17,4 @@ sed -i "s#%GROUP%#$GROUP#g" ftpbot.service
|
||||||
sed -i "s#%PWD%#$PWD#g" ftpbot.service
|
sed -i "s#%PWD%#$PWD#g" ftpbot.service
|
||||||
|
|
||||||
echo "Put ftpbot.servive within /etc/systemd/system and use systemctl to configure the service."
|
echo "Put ftpbot.servive within /etc/systemd/system and use systemctl to configure the service."
|
||||||
|
echo "You can use register_service.sh to do this via sudo."
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sudo cp ftpbot.service /etc/systemd/system/
|
||||||
|
sudo systemctl enable ftpbot.service
|
||||||
|
sudo systemctl start ftpbot.service
|
Loading…
Reference in New Issue