1. Create service script
Create file /etc/systemd/system/redmine.service with the content:
/etc/systemd/system/redmine.service
[Unit] Description=Redmine server After=syslog.target After=network.target [Service] Type=forking User=redmine Group=redmine ExecStart=/usr/bin/ruby /usr/share/webapps/redmine/script/rails server thin -e production -p 6000 # Give a reasonable amount of time for the server to start up/shut down TimeoutSec=300 [Install] WantedBy=multi-user.target
2. Reload daemon
systemctl daemon-reload
3. Enable & Start Service
systemctl enable redmine
systemctl start redmine
If you have trouble with start service, Check permission - user/group in service script
https://wiki.archlinux.org/index.php/Systemd/Services#redmine
If you have trouble with start service, Check permission - user/group in service script
https://wiki.archlinux.org/index.php/Systemd/Services#redmine
No comments:
Post a Comment