aboutsummaryrefslogtreecommitdiff
path: root/japanese/sj3-server/files/sj3.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/sj3-server/files/sj3.sh.in')
-rw-r--r--japanese/sj3-server/files/sj3.sh.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/japanese/sj3-server/files/sj3.sh.in b/japanese/sj3-server/files/sj3.sh.in
index f39a18764ccd..c9d3db5e5ed8 100644
--- a/japanese/sj3-server/files/sj3.sh.in
+++ b/japanese/sj3-server/files/sj3.sh.in
@@ -23,6 +23,13 @@ sj3_enable=${sj3_enable:-"NO"} # Enable sj3
name="sj3"
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/sj3serv"
+start_precmd="sj3serv_precmd"
+
+sj3serv_precmd()
+{
+ mkdir -p -m 0755 /var/run/sj3
+ chown _sj3:_sj3 /var/run/sj3
+}
load_rc_config $name
run_rc_command "$1"