sudo systemctl enable g1billet

This commit is contained in:
fred 2023-03-12 16:08:08 +01:00
parent 1fb8aedb1d
commit 3a1ab3a45e
1 changed files with 4 additions and 3 deletions

View File

@ -24,15 +24,16 @@ Type=simple
User=_USER_
RestartSec=1
Restart=always
ExecStart=/home/_USER_/.zen/G1BILLET/G1BILLETS.sh daemon
StandardOutput=file:/home/_USER_/.zen/tmp/g1billet.log
ExecStart=_MYPATH_/G1BILLETS.sh daemon
StandardOutput=file:_MYPATH_/tmp/g1billet.log
[Install]
WantedBy=multi-user.target
EOF
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 enable g1billet