Oscam startup question

There is 1 reply in this Thread which was already clicked 1,670 times. The last Post () by master G.

  • Hello, I'm trying to setup automatic Oscam startup on my armv7 based mini-PC. It uses latest Debian distro and systemd to control services. I've created and registered a new service to start Oscam, named oscam.service:


    I can start/stop oscam using systemctl start oscam or systemctl stop oscam, but oscam ignores configuration (-c) path /usr/local/etc/oscam/. Also systemctl status oscam shows another bad things:


    You can see here bad config path; oscam.pid somewhy is not readable (it exists, I can read it manually); process is not our child (???).
    What's wrong with the service configuration? If I start Oscam manually with the same parameters:
    /usr/bin/oscam -c /usr/local/etc/oscam/ -b -r 2,
    the configuration path is OK:

    Code
    system# ps aux | grep oscam
    root      4002  0.0  0.0   4408   252 ?        Ss   15:43   0:00 /usr/bin/oscam -c /usr/local/etc/oscam/ -b -r 2
    root      4003  2.1  0.4  33840  4244 ?        S<l  15:43   0:00 /usr/bin/oscam -c /usr/local/etc/oscam/ -b -r 2


    Oscam version oscam-1.20-unstable_svn-r11297, compiled on this same machine.

    • Official Post

    Try with this:


    Code
    [Service]
    Type=forking
    PIDFile=/var/run/oscam.pid
    ExecStart=/usr/local/bin/oscam -b -B -r 2 -w 1 -c /usr/local/etc/oscam &
    ExecStop=/usr/bin/rm /var/run/oscam.pid
    TimeoutStopSec=1
    Restart=always
    RestartSec=5
    StartLimitInterval=0


    Or this:


    Code
    [Service]
    Type=forking
    ExecStart=/usr/local/bin/oscam -b -B -r 2 -w 1 -c /usr/local/etc/oscam &
    Restart=on-failure
    NonBlocking=true
    NotifyAccess=main

OSCam Support Forum

Configs, discussion, downloads and guides for OSCam Softcam.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!