今では重荷がなくなったので...
git-svn-id: file:///srv/svn/repo/mai/trunk@71 e410bdd4-646f-c54f-a7ce-fffcc4f439ae
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $TheSupernovaDuo$
|
||||
# $YakumoLabs$
|
||||
#
|
||||
# PROVIDE: mai
|
||||
# REQUIRE: DAEMON NETWORKING syslog
|
||||
|
||||
10
rc.d/NetBSD
10
rc.d/NetBSD
@@ -1,21 +1,19 @@
|
||||
#!/bin/sh
|
||||
# $TheSupernovaDuo$
|
||||
# $YakumoLabs$
|
||||
#
|
||||
# PROVIDE: mai
|
||||
# REQUIRE: NETWORKING DAEMON
|
||||
# BEFORE: LOGIN
|
||||
# KEYWORD: shutdown
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="mai"
|
||||
rcvar=$name
|
||||
command="/usr/pkg/bin/mai"
|
||||
command_args="-f /usr/pkg/etc/mai/mai.ini -u www -g www"
|
||||
command="/usr/local/bin/mai"
|
||||
command_args="-f /usr/local/etc/mai/mai.ini"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
start_cmd="mai_start"
|
||||
|
||||
required_files="/usr/pkg/etc/mai/mai.ini"
|
||||
required_files="/usr/local/etc/mai/mai.ini"
|
||||
|
||||
mai_start() {
|
||||
$command $command_args
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/bin/ksh
|
||||
# $TheSupernovaDuo$
|
||||
# $YakumoLabs$
|
||||
|
||||
daemon="/usr/local/bin/mai"
|
||||
daemon_flags="-f /usr/local/etc/mai/mai.ini -u www -g www"
|
||||
daemon_flags="-f /usr/local/etc/mai/mai.ini"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
cmd: /usr/local/bin/mai -f /usr/local/etc/mai/mai.ini -g www -u www
|
||||
# $YakumoLabs$
|
||||
cmd: /usr/local/bin/mai -f /usr/local/etc/mai/mai.ini
|
||||
cwd: /usr/local/share/mai
|
||||
|
||||
13
rc.d/mai.service
Normal file
13
rc.d/mai.service
Normal file
@@ -0,0 +1,13 @@
|
||||
# $YakumoLabs$
|
||||
[Unit]
|
||||
Description=Mai
|
||||
Documentation=https://suzunaan.yakumo.dev/mai
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
ExecStart=/usr/local/bin/mai -f /usr/local/etc/mai/mai.ini
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
4
rc.d/mokou.conf
Normal file
4
rc.d/mokou.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
# $YakumoLabs$
|
||||
description=Mai
|
||||
exec=/usr/bin/env daemonize -p /var/run/mai.pid /usr/local/bin/mai -f /usr/local/etc/mai.ini
|
||||
pidfile=/var/run/mai.pid
|
||||
Reference in New Issue
Block a user