Systemd unit for zip installation
I could not find official way to integrate zip installation in startup. Found this on internet:
[Unit]
Description=Youtrack
After=network.target
[Install]
WantedBy=default.target
[Service]
Type=forking
RemainAfterExit=yes
User=root
Group=users
SyslogIdentifier=youtrack
WorkingDirectory=/opt/youtrack
PIDFile=/opt/youtrack/logs/youtrack.pid
RestartSec=5
Restart=on-failure
ExecStart=/opt/youtrack/bin/youtrack.sh start
ExecStop=/opt/youtrack/bin/youtrack.sh stop
But it throws following message:
Supervising process 126319 which is not our child. We'll most likely not notice when it exits.
and sure it does not notice.
Is there official way for zip installation and linux startup?
Please sign in to leave a comment.
Hello,
Unfortunately, we don't have a documented solution for that. We recommend using JAR or Docker versions in case you want to start YouTrack as a service.
Hi, I assume that need to put a "--no-browser" option to the "youtrack.sh start".
If you put this UNIT declaration to a file like "/lib/systemd/system/youtrack.service" - this shall allow you to control service by systemctl (systemctl enable youtrack). That works fine on my installation.