Page 1 of 3

Feature request Enable/Disable services

Posted: Sat Sep 10, 2011 6:14 am
by rt_rex
I have seen a request from a user and gave me an idea .
http://www.gargoyle-router.com/phpbb/vi ... f=5&t=1712
It could be interesting to have a page to enable or disable services running on the device.
Like bandwith monitor,quotas,etc, this way the low memory devices could have some extra free memory. :)

Re: Feature request Enable/Disable services

Posted: Mon Sep 12, 2011 8:31 am
by cybero2912
that would be a great and very usefull option

Re: Feature request Enable/Disable services

Posted: Wed Sep 14, 2011 11:41 am
by Cezary
Already exists. See: http://openrouter.info/forum/viewtopic.php?f=22&t=541

Simplified version (without system services) you can install by:

opkg install http://ecco.selfip.net/backfire/ar71xx/ ... -1_all.ipk

(gui in polish!)

Re: Feature request Enable/Disable services

Posted: Tue Sep 20, 2011 5:29 am
by cybero2912
would be great to have it in english ;)

Re: Feature request Enable/Disable services

Posted: Sun Sep 25, 2011 5:56 am
by behappy
repack in english
http://www.4shared.com/get/xpq7XmIa/plu ... -1_al.html

copy to tmp folder then run

Code: Select all

opkg update
opkg install /tmp/plugin-gargoyle-initd_1.5.x-1_all.ipk

from putty then run

Code: Select all

/etc/init.d/initd enable
/etc/init.d/initd start
It should be loaded up in GUI

Re: Feature request Enable/Disable services

Posted: Mon Sep 26, 2011 10:17 pm
by DoesItMatter
behappy wrote:repack in english
http://www.4shared.com/get/xpq7XmIa/plu ... -1_al.html

copy to tmp folder then run

Code: Select all

opkg update
opkg install /tmp/plugin-gargoyle-initd_1.5.x-1_all.ipk

from putty then run

Code: Select all

/etc/init.d/initd enable
/etc/init.d/initd start
It should be loaded up in GUI
behappy,

Is there some other package or addon that may be required?

I followed everything above, step by step, but when I try to
access the "Service" link - I get the following error:

500 Internal Error
Something unexpected went wrong running a CGI program.
httpd_gargoyle/1.0 14mar2008

Re: Feature request Enable/Disable services

Posted: Tue Sep 27, 2011 5:11 am
by behappy
I install it on the straight gargoyle fw.
The service-ipk does reserv the system number 310, check yr \etc\config\gargoyle file if you have installed something else.
gargoyle.system.initd='310'

config '400' 'system'
option 'access' '100'
option 'ident' '200'
option 'time' '300'
option 'backup' '400'
option 'update' '500'
option 'reboot' '600'
option 'about' '1000'
option 'themes' '311'

I'm at work, dont have access to my router.
If not it works for you then install the package as cybero2912 wrote.
Extract my repacked package by 7z (... data.tar.gz\data.tar), in there it should be to folders; etc & www. Overwrite the routers folder with those upon.
\etc\init.d\initd
\www\js\initd.js
\www\initd.sh

run \etc\init.d\initd enable
run \etc\init.d\initd start
reboot

The file initd.js defines what you want to show which services in GUI. You can change showing more or less services editing the parameter
var blockedServices = ['gargoyle_themes','initd','boot','create_original_backup','cron','ddns_gargoyle','defconfig','dnsmasq','done','dropbear','firewall','ftp','httpd_gargoyle','led',
'miniupnpd','network','nfsd','ntpclient','portmap','qos_gargoyle','rcS',
'set_kernel_timezone','sysctl','telnet','umount','usb','usb_storage','watchdog',
'webmon_gargoyle','wol'];

Re: Feature request Enable/Disable services

Posted: Tue Sep 27, 2011 8:31 am
by Cezary
to NOT show. This is blacklist, prevent disable "system" service.

Re: Feature request Enable/Disable services

Posted: Wed Sep 28, 2011 1:47 am
by DoesItMatter
behappy wrote:I install it on the straight gargoyle fw.
The service-ipk does reserv the system number 310, check yr \etc\config\gargoyle file if you have installed something else.
gargoyle.system.initd='310'

config '400' 'system'
option 'access' '100'
option 'ident' '200'
option 'time' '300'
option 'backup' '400'
option 'update' '500'
option 'reboot' '600'
option 'about' '1000'
option 'themes' '311'

I'm at work, dont have access to my router.
If not it works for you then install the package as cybero2912 wrote.
Extract my repacked package by 7z (... data.tar.gz\data.tar), in there it should be to folders; etc & www. Overwrite the routers folder with those upon.
\etc\init.d\initd
\www\js\initd.js
\www\initd.sh

run \etc\init.d\initd enable
run \etc\init.d\initd start
reboot

The file initd.js defines what you want to show which services in GUI. You can change showing more or less services editing the parameter
var blockedServices = ['gargoyle_themes','initd','boot','create_original_backup','cron','ddns_gargoyle','defconfig','dnsmasq','done','dropbear','firewall','ftp','httpd_gargoyle','led',
'miniupnpd','network','nfsd','ntpclient','portmap','qos_gargoyle','rcS',
'set_kernel_timezone','sysctl','telnet','umount','usb','usb_storage','watchdog',
'webmon_gargoyle','wol'];
OK - working now - looks good!

Not sure why it didn't work the first time.

Very cool feature this is - hopefully something Eric will add in later.

Re: Feature request Enable/Disable services

Posted: Thu Oct 27, 2011 10:06 am
by cybero2912
I have the same problem like "DoesItMatter" but I am not able to fix it

fresh installed gargoyle 1.5.0
followed the instrctions step by step

500 Internal Error
Something unexpected went wrong running a CGI program.

@DoesItMatter what have you done to get it work ?

edit: same error on 1.4.2