Feature request Enable/Disable services

Suggest improvements and new features for Gargoyle.

Moderator: Moderators

rt_rex
Posts: 44
Joined: Mon Aug 15, 2011 9:39 am

Feature request Enable/Disable services

Post 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. :)
WIFI Link @ 76 km

http://youtu.be/rrXanzlro78

cybero2912
Posts: 20
Joined: Thu Feb 11, 2010 4:50 am

Re: Feature request Enable/Disable services

Post by cybero2912 »

that would be a great and very usefull option

Cezary
Posts: 135
Joined: Thu Sep 11, 2008 12:57 pm
Location: Poland
Contact:

Re: Feature request Enable/Disable services

Post 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!)

cybero2912
Posts: 20
Joined: Thu Feb 11, 2010 4:50 am

Re: Feature request Enable/Disable services

Post by cybero2912 »

would be great to have it in english ;)

behappy
Posts: 84
Joined: Thu Mar 31, 2011 5:06 pm

Re: Feature request Enable/Disable services

Post 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
Attachments
Service List.jpg
Service List.jpg (243.01 KiB) Viewed 17093 times

User avatar
DoesItMatter
Moderator
Posts: 1373
Joined: Thu May 21, 2009 3:56 pm

Re: Feature request Enable/Disable services

Post 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
:twisted: Soylent Green Is People! :twisted:
2x Asus RT-N16 = Asus 3.0.0.4.374.43 Merlin
2x Buffalo WZR-HP-G300NH V1 A0D0 = Gargoyle 1.9.x / LEDE 17.01.x
2x Engenius - ESR900 Stock 1.4.0 / OpenWRT Trunk 49400

behappy
Posts: 84
Joined: Thu Mar 31, 2011 5:06 pm

Re: Feature request Enable/Disable services

Post 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'];

Cezary
Posts: 135
Joined: Thu Sep 11, 2008 12:57 pm
Location: Poland
Contact:

Re: Feature request Enable/Disable services

Post by Cezary »

to NOT show. This is blacklist, prevent disable "system" service.

User avatar
DoesItMatter
Moderator
Posts: 1373
Joined: Thu May 21, 2009 3:56 pm

Re: Feature request Enable/Disable services

Post 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.
:twisted: Soylent Green Is People! :twisted:
2x Asus RT-N16 = Asus 3.0.0.4.374.43 Merlin
2x Buffalo WZR-HP-G300NH V1 A0D0 = Gargoyle 1.9.x / LEDE 17.01.x
2x Engenius - ESR900 Stock 1.4.0 / OpenWRT Trunk 49400

cybero2912
Posts: 20
Joined: Thu Feb 11, 2010 4:50 am

Re: Feature request Enable/Disable services

Post 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

Post Reply