OCTADE |
mail  files  register  groups  login |
1 |
<ulpip4$3gslt$2@dont-email.me>
copy midhttps://news.octade.net/rocksolid/article-flat.php?id=89&group=rocksolid.nodes.help#89
copy link Newsgroups: rocksolid.nodes.helpHello!
I have now installed rslight in a test VM.
I have enabled the local server
It tries to contact the local NNTP server on localhost, but it doesn't
run, so it can't connect.
Is that local nntp server necessary or can it directly connect to a
normal NNTP (NNRP) server?
If it is needed, how is it started?
--
kind regards
Marco
<ca293cc2102c0b305133d342f5c928b9$1@news.novabbs.org>
copy midhttps://news.octade.net/rocksolid/article-flat.php?id=90&group=rocksolid.nodes.help#90
copy link Newsgroups: rocksolid.nodes.helpOn Mon, 18 Dec 2023 14:51:32 +0100, Marco Moock wrote:
> Hello!
>
> I have now installed rslight in a test VM.
> I have enabled the local server
>
> It tries to contact the local NNTP server on localhost, but it doesn't
> run, so it can't connect.
>
> Is that local nntp server necessary or can it directly connect to a
> normal NNTP (NNRP) server?
>
> If it is needed, how is it started?
It is usually started with cron.
When you installed, there should have been a cron string displayed at the
end of install to add to cron for root.
For a test, you can try, as root, go to your web directory, maybe /var/
www/html, or whatever you set up. Go to <web directory>/spoolnews and try
to run cron.php.
So, if your config is in /etc/rslight, it would be (from <web dir>/
spoolnews):
php /etc/rslight/scripts/cron.php (as root). That "should" start the nntp
server, or hopefully display errors if not.
The nntp.php server must be started as root, but it will drop to your web
user once running.
<ulq2k6$erae$1@paganini.bofh.team>
copy midhttps://news.octade.net/rocksolid/article-flat.php?id=91&group=rocksolid.nodes.help#91
copy link Newsgroups: rocksolid.nodes.helpOn Mon, 18 Dec 2023 14:51:32 +0100
Marco Moock <mm+usenet-es@dorfdsl.de> wrote:
> Hello!
>
> I have now installed rslight in a test VM.
> I have enabled the local server
>
> It tries to contact the local NNTP server on localhost, but it doesn't
> run, so it can't connect.
>
> Is that local nntp server necessary or can it directly connect to a
> normal NNTP (NNRP) server?
>
> If it is needed, how is it started?
This is a systemd script that replaces the crontab entry. It makes it
much easier to enable/disable the cron when testing the server or
troubleshooting connection issues.
In the file below replace the file paths with the paths unique to your
rslight setup. Do not touch or change anything else in the slightest.
Copy and paste the text between the dashed lines and save to a file
named 'rslight.service'. Only change these items:
1. $WEB_DIRECTORY : must be the web directory of your rslight install.
2. ExecStart: the second part after /bin/php/ must be the path to
cron.php. In this example the default /etc/rslight/scripts/cron.php is
provided.
After you double and triple check that your edited paths match your
rslight install, save 'rslight.service' then do these steps:
$ sudo cp rslight.service /etc/systemd/system/rslight.service
$ sudo chown root:root /etc/systemd/system/rslight.service
$ sudo systemctl daemon-reload
$ sudo sytemctl enable rslight.service
$ sudo systemclt start rslight.service
This will run the cron every ten minutes. It will automatically start
the daemon any time the server reboots.
You may then check the status of the rslight cron job:
$ systemctl status rslight.service
---------------------------------------------------
[Unit]
Description=RSLIGHT_CRON_JOB
After=network.target
StartLimitIntervalSec=0
[Service]
User=root
Type=simple
TimeoutSec=930
WorkingDirectory=/${WEB_DIRECTORY}/spoolnews
PIDFile=/var/run/rslight_cron_service.pid
ExecStart=/bin/php /etc/rslight/scripts/cron.php
KillMode=process
Restart=always
RestartSec=600s
[Install]
WantedBy=multi-user.target
---------------------------------------------------
<ulq8l6$f3m6$1@paganini.bofh.team>
copy midhttps://news.octade.net/rocksolid/article-flat.php?id=92&group=rocksolid.nodes.help#92
copy link Newsgroups: rocksolid.nodes.helpOn Mon, 18 Dec 2023 12:23:12 -0600
SugarBug <3883@sugar.bug> wrote:
<snip>
> You may then check the status of the rslight cron job:
>
> $ systemctl status rslight.service
View the log of the rslight cron:
$ journalctl -u rslight.service
Any time you wish to stop the service:
$ systemctl stop rslight.service
Disable the service and prevent it from running:
$ systemctl disable rslight.service
Re-enable the service:
$ systemctl enable rslight.service
Restart the service:
$ systemctl restart rslight.service
<40a8a230f65bbbf9ae04b219e700bb8b@news.novabbs.org>
copy midhttps://news.octade.net/rocksolid/article-flat.php?id=98&group=rocksolid.nodes.help#98
copy link Newsgroups: rocksolid.nodes.helpSugarBug wrote:
> On Mon, 18 Dec 2023 14:51:32 +0100
> Marco Moock <mm+usenet-es@dorfdsl.de> wrote:
>> Hello!
>>
>> I have now installed rslight in a test VM.
>> I have enabled the local server
>>
>> It tries to contact the local NNTP server on localhost, but it doesn't
>> run, so it can't connect.
>>
>> Is that local nntp server necessary or can it directly connect to a
>> normal NNTP (NNRP) server?
>>
>> If it is needed, how is it started?
> This is a systemd script that replaces the crontab entry. It makes it
> much easier to enable/disable the cron when testing the server or
> troubleshooting connection issues.
That's a nice option!
I'm going to give it a try later this week.
--
Retro Guy
1 |