Browse Source

corrected missing equal sign

master
poikilos 7 years ago
committed by Jacob Gustafson
parent
commit
e1a9b45f9b
  1. 24
      etc/change_hardcoded_world_and_username_manually_first/install-systemd-service
  2. 2
      etc/change_hardcoded_world_and_username_manually_first/mts-ENLIVEN.service

24
etc/change_hardcoded_world_and_username_manually_first/install-systemd-service

@ -6,7 +6,7 @@
#* Ignores invalid directives and starts the service ... #* Ignores invalid directives and starts the service ...
# systemd-analyze verify <unit> file to get warnings on typos and badly formatted options. # systemd-analyze verify <unit> file to get warnings on typos and badly formatted options.
#* requires full path, so ExecStart=/bin/sleep 20 works but ExecStart=sleep 20 does not. #* requires full path, so ExecStart=/bin/sleep 20 works but ExecStart=sleep 20 does not.
#* custom system-wide scripts go in /etc/systemd/system/, builtin services which reside in /usr/lib/systemd/system/ (and custom ones may override system-wide ones)
## Known Issues ## Known Issues
# * should use machinectl shell instead of su or sudo as of 2016 updates to systemd # * should use machinectl shell instead of su or sudo as of 2016 updates to systemd
@ -18,14 +18,28 @@
# instead of User=owner # instead of User=owner
#Update the unit: #Update the unit:
cd $HOME/Downloads
if [ -f mts-ENLIVEN.service ]; then if [ -f mts-ENLIVEN.service ]; then
#clear old downloaded copy if exists in userspace #clear old downloaded copy if exists in userspace
rm mts-ENLIVEN.service rm mts-ENLIVEN.service
fi fi
wget https://github.com/expertmm/EnlivenMinetest/raw/master/etc//home/owner/Documents/GitHub/EnlivenMinetest/etc/change_hardcoded_world_and_username_manually_first/install-systemd-service/mts-ENLIVEN.service wget https://github.com/expertmm/EnlivenMinetest/raw/master/etc/change_hardcoded_world_and_username_manually_first/mts-ENLIVEN.service
echo "This will only work if you are using systemd." echo "This will only work if you are using systemd."
sudo mv -f mts-ENLIVEN.service /etc/init.d/ sudo mv -f mts-ENLIVEN.service /etc/systemd/system/
#sudo chmod +x /etc/systemd/system/mts-ENLIVEN.service
sudo chmod 644 /etc/systemd/system/mts-ENLIVEN.service
#644 since should not be executable ( 1 is the executable flag bit )
sudo chown root /etc/systemd/system/mts-ENLIVEN.service
sudo chgrp root /etc/systemd/system/mts-ENLIVEN.service
#? sudo mv -f mts-ENLIVEN.service /etc/systemd/system/ #? sudo mv -f mts-ENLIVEN.service /etc/systemd/system/
#enable the mts-ENLIVEN systemd service on Ubuntu: #enable the mts-ENLIVEN systemd service on Ubuntu:
sudo service mts-ENLIVEN enable #sudo service mts-ENLIVEN enable
sudo service mts-ENLIVEN start #sudo service mts-ENLIVEN start
sudo systemctl enable mts-ENLIVEN
sudo systemctl start mts-ENLIVEN
#VIEW STATUS LIKE:
#sudo journalctl -u mts-ENLIVEN
##OR
#sudo systemctl status mts-ENLIVEN
#(press q to exit)

2
etc/change_hardcoded_world_and_username_manually_first/mts-ENLIVEN.service

@ -1,5 +1,5 @@
[Unit] [Unit]
description "Job that runs mts-ENLIVEN minetest server as specific user" description="Job that runs mts-ENLIVEN minetest server as specific user"
After=network.target After=network.target
[Service] [Service]

Loading…
Cancel
Save