NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Dewdman42
Apr 15, 2016Virtuoso
how to get rid of Mysql systemctl
At some point I installed the MySQL addon and removed it later when I decided to use postgres. However, MySQL is still left running on my system and enabled as a systemctl service, even after reboot...
Dewdman42
Apr 15, 2016Virtuoso
Also I am trying to figure out how addons have their services added to systemctl. When I inspected the postgresql addon control postinst script, I see the following command:
event_push app readynasd '<add-s resource-type="LocalApp" resource-id="LocalApp"><LocalApp appname="postgresql-readynas" success="1" reboot="1"/></add-s>' 0 0
This seems to pass itself to readynasd for registration somewhere. Aside from that, the postinst script doesn't have any code to enable the systemd service unit. The .service file is there in the /apps/postgresql_readynas/ folder, and it gets moved into systemd, but not explicitly by this script. Does readynasd move .service files automatically from an /apps/<appname> dir when its present there? If so, does that only happen when this event_push is called? or something simillar? After that its entirely up to systemctl to start/stop or enable/disable the service....presuming there isn't also an init.d service redundantly doing something... Am I understanding things right?
siigna
Apr 15, 2016NETGEAR Employee Retired
That event_push command has actually been deprecated from the SDK and is no longer needed (SDK is being updated). It used to let readynasd know the install went OK, but it's taken care of automatically now.
/apps/PACKAGE/fvapp-PACKAGE.service is automatically copied over to /lib/systemd/system on install. The UI toggle starts and stops the systemd service.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!