Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
service:ircd [2021/01/11 17:06] – [Using JSexec with systemd] whoops. changed the wrong service file digital manservice: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 20: Line 20:
 In short, this document assumes that you know: In short, this document assumes that you know:
  
-* How to use your computer and operating system effectively. +  * How to use your computer and operating system effectively. 
-* The basics of IRC and its terminology. +  * The basics of IRC and its terminology. 
-* How to use, configure, and make basic modifications to Synchronet. +  * How to use, configure, and make basic modifications to Synchronet. 
-* The basics of the Internet (or at least the ability to visualize a routed, distributed network)+  * The basics of the Internet (or at least the ability to visualize a routed, distributed network)
  
 ====== Installation ====== ====== Installation ======
Line 89: Line 89:
 assigned, and the server will never echo your QWK password back to you, so it chooses to echo a '*' back instead.  An asterisk in the N:Line also forbids any servers from connecting *to* you, which is important, since you'll only be doing outbound connects with this C/N pair. assigned, and the server will never echo your QWK password back to you, so it chooses to echo a '*' back instead.  An asterisk in the N:Line also forbids any servers from connecting *to* you, which is important, since you'll only be doing outbound connects with this C/N pair.
  
-(4) Restart your BBS (or, if you know how to become an IRC operator, simply use the /REHASH command)and you should see a message similar to the following in your Synchronet console:+(4) If you know how to become an IRC operator, simply use the /REHASH command. If not, you can try **touch /sbbs/ctrl/ircd.rehash** otherwise restart your BBS. You should see a message similar to the following in your Synchronet console:
  
 <code> <code>
Line 116: Line 116:
 ====== Using JSexec with systemd ====== ====== Using JSexec with systemd ======
  
-Create a file /etc/systemd/system/ircd.service containing (for logging to logfile): +A sample ''ircd.service'' file for starting/managing JSexec-invoked ircd.js instance is provided [[https://gitlab.synchro.net/main/sbbs/-/blob/master/install/systemd/ircd.service|in the Synchronet Git repository]].
-<code> +
-[Unit] +
-  Description=Synchronet BBS IRCD +
-  After=syslog.target network.target +
- +
-[Service] +
-  Type=simple +
-  Environment=SBBSROOT=/sbbs SBBSCTRL=/sbbs/ctrl SBBSEXEC=/sbbs/exec/ +
-  User=sbbs +
-  Group=sbbs +
-  StandardOutput=file:/sbbs/data/logs/ircd.log +
-  StandardError=file:/sbbs/data/logs/ircd.err +
-  ExecStart=/sbbs/exec/jsexec -A -l /sbbs/exec/ircd.js +
- +
-[Install] +
-  WantedBy=default.target +
-</code> +
- +
-Or for logging using syslog: +
-<code> +
-[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/exec/jsexec -d -l /sbbs/exec/ircd.js +
- +
-[Install] +
-  WantedBy=default.target +
-</code> +
  
 Then run: Then run:
service/ircd.1610413566.txt · Last modified: 2021/01/11 17:06 by digital man
Back to top
CC Attribution 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0