packages/net/scanlogd/files/scanlogd.init
nico 01f5f5421c packages/scanlogd: change chroot to /var/run/scanlogd, use new service functions, create scanlogd user and group at start
git-svn-id: svn://svn.openwrt.org/openwrt/packages@28967 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-12 01:30:25 +00:00

20 lines
404 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=50
start() {
user_exists scanlogd 51 || user_add scanlogd 51
group_exists scanlogd 51 || group_add scanlogd
[ -d /var/run/scanlogd ] || {
mkdir -m 0755 -p /var/run/scanlogd
chmod 0755 /var/run/scanlogd
chown scanlogd:scanlogd /var/run/scanlogd
}
service_start /usr/sbin/scanlogd
}
stop() {
service_stop /usr/sbin/scanlogd
}