autostart script #50

Closed
opened 2026-10-05 03:10:15 +02:00 by adam · 2 comments
Owner

Can You provide simple example srndv2 autostart script for Debian ?
I'm trying to add it to init.d scripts but doesn't work properly.
My starting command is : /home/anyuser/nntpchan/srndv2 run > srndv2.out 2>&1. Script is starting but file srndv2.out NOT CREATED. Additionally cannot use /etc/init.d/nntpchan stop . Stopping works only by manually killed process.
Any help ?

Can You provide simple example srndv2 autostart script for Debian ? I'm trying to add it to init.d scripts but doesn't work properly. My starting command is : /home/anyuser/nntpchan/srndv2 run > srndv2.out 2>&1. Script is starting but file srndv2.out NOT CREATED. Additionally cannot use /etc/init.d/nntpchan stop . Stopping works only by manually killed process. Any help ? <!-- github-sync-id:520204922 -->
adam closed this issue 2026-10-05 03:10:15 +02:00
Author
Owner

i use this systemd unit for my production server

[Unit]
Description=NNTPChan Server

[Service]
Type=simple
User=nntpchan
Environment="MAXGOPROCS=4"
WorkingDirectory=/home/nntpchan/nntpchan
ExecStart=/home/nntpchan/nntpchan/srndv2 run
ExecStop=/bin/kill -15 $MAINPID
Restart=always
RestartSec=30s


[Install]
WantedBy=multi-user.target
i use this systemd unit for my production server ``` [Unit] Description=NNTPChan Server [Service] Type=simple User=nntpchan Environment="MAXGOPROCS=4" WorkingDirectory=/home/nntpchan/nntpchan ExecStart=/home/nntpchan/nntpchan/srndv2 run ExecStop=/bin/kill -15 $MAINPID Restart=always RestartSec=30s [Install] WantedBy=multi-user.target ``` <!-- github-comment-id:551969864 -->
Author
Owner

ok. works perfectly. thanks ;-)

ok. works perfectly. thanks ;-) <!-- github-comment-id:552002105 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/nntpchan#50