mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
icecast: Improve OOB experience - new defaults, add user & group ids
Signed-off-by: Ted Hess <thess@kitschensync.net>
This commit is contained in:
@@ -1,12 +1,21 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Example script
|
||||
# Copyright (C) 2014 OpenWrt.org
|
||||
|
||||
# Startup script
|
||||
# Copyright (C) 2015 OpenWrt.org
|
||||
|
||||
USE_PROCD=1
|
||||
START=99
|
||||
START=90
|
||||
STOP=15
|
||||
|
||||
start_service() {
|
||||
user_exists icecast 87 || user_add icecast 87
|
||||
group_exists icecast 87 || group_add icecast 87
|
||||
|
||||
[ -d /var/log/icecast ] || {
|
||||
mkdir -m 0755 -p /var/log/icecast
|
||||
chown icecast:icecast /var/log/icecast
|
||||
}
|
||||
|
||||
procd_open_instance
|
||||
procd_set_param command /usr/bin/icecast -c /etc/icecast.xml
|
||||
procd_set_param respawn
|
||||
|
||||
Reference in New Issue
Block a user