Systemd: docker-compose system configuration

Description=iix-notes @ iix.se docker Requires=docker.service After=docker.service [Service] WorkingDirectory=/srv/iix-notes ExecStart=/usr/local/bin/docker-compose up ExecStop=/usr/local/bin/docker-compose down [Install] WantedBy=multi-user.target

Systemd: Creating a generic non-forking service

# /etc/systemd/system/spark-backend.service Description=iix.se java spark backend After=network.target [Service] WorkingDirectory=/srv/spark-backend User=www-data Group=www-data ExecStart=/srv/spark-backend/bin/spark-backend [Install] WantedBy=multi-user.target

Installing Teamspeak3 Server

Download tarball from www.teamspeak.com Untar to /home/teamspeak Add user/group teamspeak Run the init as teamspeak sudo su - teamspeak ./ts3server_minimal_runscript.sh createinifile=1 Configure ts3server.ini Make sure you can start it (then ^C to kill it) ./ts3server_startscript.sh start Create /etc/systemd/system/teamspeak.service [Unit] Description=Teamspeak server After=network.target [Service] User=teamspeak Group=teamspeak Type=forking PIDFile=/home/teamspeak/ts3server.pid ExecStart=/home/teamspeak/ts3server_startscript.sh start [Install] WantedBy=multi-user.target Test it through systemctl and then enable it sudo systemctl start teamspeak.service sudo systemctl enable teamspeak.service

March 21, 2015  |  🏷️Systemd