31 lines
1.8 KiB
Desktop File
31 lines
1.8 KiB
Desktop File
#==================================================================================================
|
|
# This systemd service file can be used to start and stop the 'Multi Relay Chat' python script as #
|
|
# a proper service module. In order for it to work correctly, it must be set to 'Type=forking'. #
|
|
# As a forking service, it will decide if start/stop was a failure based on the returned error #
|
|
# code. A return of 0 will be considered success, and a return of 1 will be a failure. The MRC #
|
|
# python script should ideally be launched as the same user who owns the mystic directories. To #
|
|
# do this, be sure to uncomment and set the 'User=' option in the [Service] section below. If you #
|
|
# don't, the script will be executed as root, which may have security implications. This file is #
|
|
# indended to work with Debian, Ubuntu, Raspbian and other debian based distributions, but may #
|
|
# work with others as well. #
|
|
# #
|
|
# Be sure to set the location of your mrc-start.sh and mrc-stop.sh scripts in the [Service] #
|
|
# section below, and to optionally set your user as described above. #
|
|
#==================================================================================================
|
|
|
|
[Unit]
|
|
Description=Multi Relay Chat for Mystic BBS
|
|
After=network.target
|
|
After=systemd-user-sessions.service
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
# Be sure to set 'User' below to the user who owns your mystic directory.
|
|
User=mystic
|
|
# Ensure that the paths and filenames below are correct.
|
|
ExecStart=@MYSTIC_DIR@/mrc-start
|
|
ExecStop=@MYSTIC_DIR@/mrc-stop
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |