I don't have Debian Linux and I don't use this kind of "service launcher", so, I guess I can't advise you. I use "/etc/init.d" to run OSCam / CCcam. See the script of mine as well as the instructions inside the script:
https://github.com/s3n0/e2scripts/blob/master/softcam
However, Linux systems are CASE SENSTIVE. Therefore, make sure that the binary file name or service name is correct. Use the same capital letters everywhere - use CCcam, not cccam. Maybe it will help. Your binary contains the first two capital letters.
Or it will be easier if you change all your "CCcam" to "cccam". To lowercase letters. Also rename the binary file to "cccam" from the original "CCcam.x86_64". Of course, then also edit your config file and change this "CCcam.x86_64" to "cccam".
I don't know for sure, but it seems to me that the PID file must have about the same name as the binary file name or the service name.
I also think that the "-B" argument is not necessary. Linux creates the PID file itself. But I don't know for sure either. My CCcam binary file (in the Enigma2 / Linux set-top box) does not contain any "-B" argument. Although it depends on the build version of a particular CCcam. In my opinion, this "-B" argument is not necessary. I'm not sure, sorry.
root@vusolose:~# /usr/bin/CCcam --help
usage: CCcam [-d] [-C <configfile>]
-d run in the foreground (implies -v and -q)
-v be verbose
-q don't use syslog (use on old systems)
-C <configfile> use <configfile> instead of default (/var/etc/CCcam.cfg)
-f filter on specific demux data (saves some CPU,
but some platforms might not handle this very well)
-n show network packets
-s disable server
-t show timing
-l disable self-learning capabilities
root@vusolose:~#
Display More
I recommend using this line as a trigger for cccam:
ExecStart=/bin/bash -c '/usr/bin/CCcam -c /var/etc/CCcam.cfg'
Or if you changed everything to "cccam" (lower case), then:
ExecStart=/bin/bash -c '/usr/bin/cccam -c /var/etc/cccam.cfg'
Or try the following start script (source: http://www.digital-eliteboard.com):
[Unit]
Requires=dev-dvb-adapter0-ca0.device dev-dvb-adapter0-demux0.device
After=dev-dvb-adapter0-ca0.device
After=dev-dvb-adapter0-demux0.device
[Service]
Type=forking
ExecStart=/bin/bash -c '/usr/local/bin/cccam -c /var/etc/cccam.cfg'
NonBlocking=true
NotifyAccess=main
[Install]
WantedBy=multi-user.target
Display More
Don't forget to match the size of the characters in the service name, script name and binary name.
I hope your CCcam binary also has the execution attributes set:
chmod a+x /path/binary_file