This is a Deno script, which allows you to manage the services on your Linux machine with ease
systemctl
to manage the services
- Clone the repository
- Install Deno
- Rename
env.template
to.env
and fill in the required fields - Run
deno run -A main.ts
- Create a new file in
/etc/systemd/system/
called however you want, for examplecustom-service-manager.service
- Add the following content to the file:
[Unit]
Description=Discord Service Manager
After=network.target
[Service]
User=root
Group=root
ExecStart=bash -c 'cd /home/liam/server/deno/discord-service-manager && /home/liam/.deno/bin/deno run --watch -A main.ts'
[Install]
WantedBy=multi-user.target
Watch out to replace the paths with your own paths!
- Run
systemctl enable custom-service-manager
(watch out to change the service name) to enable the service (autostart on boot) - Run
systemctl start custom-service-manager
to start the service