https://github.com/dnascanner/discord-service-manager
A Discord bot used to manage services on Linux
https://github.com/dnascanner/discord-service-manager
bot deno discord discordjs linux services systemctl systemd
Last synced: 4 months ago
JSON representation
A Discord bot used to manage services on Linux
- Host: GitHub
- URL: https://github.com/dnascanner/discord-service-manager
- Owner: DNAScanner
- Created: 2024-06-25T16:41:25.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-26T19:24:26.000Z (about 2 years ago)
- Last Synced: 2025-01-17T21:44:11.548Z (over 1 year ago)
- Topics: bot, deno, discord, discordjs, linux, services, systemctl, systemd
- Language: TypeScript
- Homepage:
- Size: 600 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Discord Service Manager for Linux by DNA
This is a [Deno](https://deno.com) script, which allows you to manage the services on your Linux machine with ease
⚠️ **Note:** This script is required to be run as root, as it uses `systemctl` to manage the services
## Screenshots



## Setup
1. Clone the repository
2. Install [Deno](https://deno.com/)
3. Rename `env.template` to `.env` and fill in the required fields
4. Run `deno run -A main.ts`
## Add as a service
1. Create a new file in `/etc/systemd/system/` called however you want, for example `custom-service-manager.service`
2. Add the following content to the file:
```ini
[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!
3. Run `systemctl enable custom-service-manager` (watch out to change the service name) to enable the service (autostart on boot)
4. Run `systemctl start custom-service-manager` to start the service