forked from qo-op/G1BILLET
sudo systemctl enable g1billet
This commit is contained in:
parent
1fb8aedb1d
commit
3a1ab3a45e
@ -24,15 +24,16 @@ Type=simple
|
|||||||
User=_USER_
|
User=_USER_
|
||||||
RestartSec=1
|
RestartSec=1
|
||||||
Restart=always
|
Restart=always
|
||||||
ExecStart=/home/_USER_/.zen/G1BILLET/G1BILLETS.sh daemon
|
ExecStart=_MYPATH_/G1BILLETS.sh daemon
|
||||||
StandardOutput=file:/home/_USER_/.zen/tmp/g1billet.log
|
StandardOutput=file:_MYPATH_/tmp/g1billet.log
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
sudo cp -f /tmp/g1billet.service /etc/systemd/system/
|
sudo cp -f /tmp/g1billet.service /etc/systemd/system/
|
||||||
sudo sed -i "s/_USER_/$USER/g" /etc/systemd/system/g1billet.service
|
sudo sed -i "s~_USER_~${USER}~g" /etc/systemd/system/g1billet.service
|
||||||
|
sudo sed -i "s~_MYPATH_~${MY_PATH}~g" /etc/systemd/system/g1billet.service
|
||||||
|
|
||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
sudo systemctl enable g1billet
|
sudo systemctl enable g1billet
|
||||||
|
Loading…
Reference in New Issue
Block a user