chkservice
chkservice copied to clipboard
Unable enable/disable specific services
Hi, Sorry for my English.
I'm using Debian 9.5 x64 and chkservice 0.1 .
When I try to use chkservice to manage services, Like enable or disable some services ( For example, shadowsocks-libev.services from shadowsocks-libev ), I got an error:
Failed: Invalid argument
or
Failed: Connection reset by peer

But on some else services is working perfect, Like cron.service .
In other ways, The systemctl can successfully enable or disable this services:
root@Shaoju-Debian9:~# systemctl disable shadowsocks-libev.service
Synchronizing state of shadowsocks-libev.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable shadowsocks-libev
root@Shaoju-Debian9:~#
How can I make chkservice working or give more information to fix this issue?
Thanks. :)
systemd version:
systemd 232
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN
System version:
Distributor ID: Debian
Description: Debian GNU/Linux 9.5 (stretch)
Release: 9.5
Codename: stretch
Kernel version:
Linux Shaoju-Debian9 4.9.0-7-amd64 #1 SMP Debian 4.9.110-1 (2018-07-05) x86_64 GNU/Linux
Hi 🦄
Actually, your English is fine. So you've described the problem very well. It is not that simple to get to specific of the project I made a year ago, perhaps the weather and upcoming winter makes me a bit depressing.
First thing first, I need to get the same configuration, the debian 9.5 to be particular and check it out. It can take some time, be patient please. And thank you for the report.
Service can be enabled or disabled successfully
https://github.com/nufeng1999/chkservice
modify Bug caused by temporary pointer of c_str()
Can this get implemented in main? This needs to be in distributions like Debian.
Hello @linuxenko. Are you going to accept the pull request #22 from @nufeng1999 ? Or does it need some rework ?
Hello @linuxenko. Are you going to accept the pull request #22 from @nufeng1999 ? Or does it need some rework ?
Apparently it needs an English commit name, which I've done in #34