-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4f9ed7
commit 6541f0b
Showing
3 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/sh /etc/rc.common | ||
# Copyright (C) 2006-2011 OpenWrt.org | ||
|
||
START=92 | ||
STOP=02 | ||
|
||
USE_PROCD=1 | ||
|
||
start_service() { | ||
procd_open_instance classd | ||
|
||
# procd_set_param env GODEBUG=schedtrace=30000 | ||
# procd_set_param env GODEBUG=schedtrace=30000,scheddetail=1 | ||
|
||
# if not hybrid mode, start the packetd | ||
if [ -e /etc/config/hybrid ] | ||
then | ||
# procd command to run | ||
procd_set_param command /usr/bin/classd -mfw -w65536 -d | ||
fi | ||
|
||
# restart indefinitely if crashed, 5 seconds between attempts | ||
procd_set_param respawn 3600 5 0 | ||
|
||
# stdout to system log | ||
procd_set_param stdout 1 | ||
# stderr to system log | ||
procd_set_param stderr 1 | ||
|
||
procd_close_instance | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters