• Failing to run as a daemon in FreeBSD

    From Matthew@1:103/705 to All on Thu Feb 11 15:14:09 2021
    Hello, I have successfully been able to install Synchronet using the guide on the wiki. I am now trying to be able to run the service as a daemon.

    I placed the service script in the /usr/local/etc/rc.d directory.
    I copy pasted the sbbs settings in /etc/rc.conf to be honest I dont know what I need to configure in there. This may be part of my problem.

    When I do: /usr/local/etc/rc.d/sbbs start I get an error that sbbs is not found in that directory. But its clearly there.

    I notice in those settings there is suppossed to be a PID file in /var/run/sbbs.pid How do I create this file?

    ---
    þ Synchronet þ Matts BBS
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Matthew on Thu Feb 11 20:39:18 2021
    Re: Failing to run as a daemon in FreeBSD
    By: Matthew to All on Thu Feb 11 2021 03:14 pm

    Hello, I have successfully been able to install Synchronet using the guide on the wiki. I am now trying to be able to run the service as a daemon.

    I placed the service script in the /usr/local/etc/rc.d directory.
    I copy pasted the sbbs settings in /etc/rc.conf to be honest I dont know what I need to configure in there. This may be part of my problem.

    When I do: /usr/local/etc/rc.d/sbbs start I get an error that sbbs is not found in that directory. But its clearly there.

    Is it set as executable?

    I notice in those settings there is suppossed to be a PID file in /var/run/sbbs.pid How do I create this file?

    pid files are created automatically by the executed program. You can control the location of the pid file with the [Unix] PidFile key in your ctrl/sbbs.ini file, but the default value is /var/run/sbbs.pid and will be created or updated when you run the 'sbbs' program.
    --
    digital man

    This Is Spinal Tap quote #19:
    Oh then, maybe it's not green. Anyway this is what I sleep in sometimes.
    Norco, CA WX: 53.3øF, 88.0% humidity, 2 mph ESE wind, 0.00 inches rain/24hrs --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Matthew@1:103/705 to Digital Man on Fri Feb 12 08:24:59 2021
    When I do: /usr/local/etc/rc.d/sbbs start I get an error that sbbs is
    not
    found in that directory. But its clearly there.

    Is it set as executable?

    digital man

    That was it! Thank you, I am still very much a noob when it comes to FreeBSD.

    For anyone who may find this in the future, as root, you need to set the file as executable by doing chmod +x sbbs. While in the appropriate directory obviously.

    Thank you, digital man

    ---
    þ Synchronet þ Matts BBS
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)