Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
service:ircd [2023/02/27 00:18] – [Linking to the Synchronet IRC Network (irc.synchro.net)] Added touch to recycle ircd nelgin | service:ircd [2023/09/09 10:40] (current) – [Using JSexec with systemd] Refer to the ircd.service file from the Git repo instead of copy/pasting stale example here digital man | ||
---|---|---|---|
Line 116: | Line 116: | ||
====== Using JSexec with systemd ====== | ====== Using JSexec with systemd ====== | ||
- | Create a file / | + | A sample '' |
- | < | + | |
- | [Unit] | + | |
- | Description=Synchronet BBS IRCD | + | |
- | After=syslog.target network.target | + | |
- | + | ||
- | [Service] | + | |
- | Type=simple | + | |
- | Environment=SBBSROOT=/ | + | |
- | User=sbbs | + | |
- | Group=sbbs | + | |
- | StandardOutput=file:/ | + | |
- | StandardError=file:/ | + | |
- | ExecStart=/ | + | |
- | + | ||
- | [Install] | + | |
- | WantedBy=default.target | + | |
- | </code> | + | |
- | + | ||
- | Or for logging using syslog: | + | |
- | < | + | |
- | [Unit] | + | |
- | Description=Synchronet BBS IRCD | + | |
- | After=syslog.target network.target | + | |
- | + | ||
- | [Service] | + | |
- | Type=forking | + | |
- | Environment=SBBSROOT=/sbbs SBBSCTRL=/sbbs/ctrl SBBSEXEC=/sbbs/exec/ | + | |
- | User=sbbs | + | |
- | Group=sbbs | + | |
- | ExecStart=/sbbs/ | + | |
- | + | ||
- | [Install] | + | |
- | WantedBy=default.target | + | |
- | </ | + | |
Then run: | Then run: |