chkservice icon indicating copy to clipboard operation
chkservice copied to clipboard

Unable enable/disable specific services

Open chenshaoju opened this issue 7 years ago • 5 comments

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 image

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

chenshaoju avatar Oct 22 '18 12:10 chenshaoju

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.

linuxenko avatar Oct 22 '18 15:10 linuxenko

Service can be enabled or disabled successfully

https://github.com/nufeng1999/chkservice

modify Bug caused by temporary pointer of c_str()

nufeng1999 avatar Jan 16 '20 15:01 nufeng1999

Can this get implemented in main? This needs to be in distributions like Debian.

VA1DER avatar May 05 '21 11:05 VA1DER

Hello @linuxenko. Are you going to accept the pull request #22 from @nufeng1999 ? Or does it need some rework ?

saulius-krasuckas avatar Jul 03 '21 07:07 saulius-krasuckas

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

JJRcop avatar Aug 12 '22 17:08 JJRcop