| 1 | |
| 2 | == Sample [https://nishi.boats/mokou Mokou] services |
| 3 | This was inspired by [https://smarden.org/runit runit]'s sample `run` scripts |
| 4 | |
| 5 | **Note**: ''The majority of the entries listed here use [http://software.clapper.org/daemonize/ daemonize] as they would usually run in foreground otherwise'' |
| 6 | |
| 7 | **Note #2**: ''Those as you can see, run on [https://www.netbsd.org NetBSD]'' |
| 8 | |
| 9 | === Jenkins |
| 10 | {{{ |
| 11 | description=Build great things at any scale |
| 12 | exec=/usr/pkg/sbin/daemonize /var/run/jenkins.pid /usr/bin/env JENKINS_HOME=/srv/http/jenkins /usr/pkg/java/openjdk17/bin/java -Xmx512m -jar /srv/http/jenkins/jenkins.war --httpPort=9090 --webroot=/srv/http/jenkins/war |
| 13 | pidfile=/var/run/jenkins.pid |
| 14 | user=www |
| 15 | }}} |
| 16 | |
| 17 | === Mai |
| 18 | {{{ |
| 19 | description=Mai |
| 20 | exec=/usr/pkg/sbin/daemonize -c /usr/pkg/share/mai -p /var/run/mai.pid /usr/pkg/bin/mai -f /usr/pkg/etc/mai.ini -u www -g www |
| 21 | pidfile=/var/run/mai.pid |
| 22 | }}} |
| 23 | |
| 24 | === Marisa |
| 25 | {{{ |
| 26 | description=Marisa |
| 27 | exec=/usr/pkg/sbin/daemonize -p /var/run/marisa.pid /usr/pkg/bin/marisa -f /usr/pkg/etc/marisa.conf |
| 28 | pidfile=/var/run/marisa.pid |
| 29 | }}} |
| 30 | |
| 31 | === Solanum |
| 32 | {{{ |
| 33 | description=IRCd full of bugs |
| 34 | exec=/usr/pkg/bin/solanum -pidfile /var/run/solanum.pid |
| 35 | user=irc |
| 36 | pidfile=/var/run/solanum.pid |
| 37 | }}} |
| 38 | |
| 39 | === Suika |
| 40 | {{{ |
| 41 | description=Suika |
| 42 | exec=/usr/pkg/sbin/daemonize -p /var/run/suika.pid /usr/pkg/bin/suika --config /usr/pkg/etc/suika/config |
| 43 | pidfile=/var/run/suika.pid |
| 44 | user=irc |
| 45 | }}} |
| 46 | |
| 47 | === Symfony Framework Worker |
| 48 | {{{ |
| 49 | description=Symfony worker for Postmill |
| 50 | exec=/usr/pkg/sbin/daemonize -c /srv/http/postmill -p /var/run/symfony-messenger-worker.pid /usr/pkg/bin/php /srv/http/postmill/bin/console messenger:consume default --time-limit=3600 |
| 51 | pidfile=/var/run/symfony-messenger-worker.pid |
| 52 | user=www |
| 53 | }}} |
| 54 | |
| 55 | === Toyohime |
| 56 | {{{ |
| 57 | description=Toyohime |
| 58 | exec=/usr/pkg/sbin/daemonize -p /var/run/toyohime.pid /usr/pkg/bin/toyohime -index -nohealthz -listen 127.0.0.1:4600 marisa.chaotic.ninja /usr/pkg/etc/toyohime-repos |
| 59 | pidfile=/var/run/toyohime.pid |
| 60 | user=www |
| 61 | }}} |
| 62 | |
| 63 | === Yggstack |
| 64 | {{{ |
| 65 | description=Yggstack |
| 66 | exec=/usr/pkg/sbin/daemonize -p /var/run/yggstack.pid /usr/pkg/bin/yggstack -useconffile /usr/pkg/etc/yggdrasil.conf |
| 67 | pidfile=/var/run/yggstack.pid |
| 68 | }}} |
| 69 | |
| 70 | === Yukari's Gap |
| 71 | {{{ |
| 72 | description=Yukari's Gap |
| 73 | exec=/usr/pkg/sbin/daemonize -p /var/run/yukari.pid /usr/pkg/bin/yukari -f /usr/pkg/etc/yukari.ini |
| 74 | pidfile=/var/run/yukari.pid |
| 75 | user=www |
| 76 | }}} |