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 -->
[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 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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 ?
i use this systemd unit for my production server
ok. works perfectly. thanks ;-)