Всем привет! Не раз поднимал Redmine на Debian, не было никаких проблем. Redmine у меня всегда крутится на Webrick. На данный момент переезжаю с своего VPS на Rapsberry Pi 3B, переношу и Redmine. Установил. Webrick запускается нормально, если выполнить
ruby bin/rails server webrick -e production -b 192.168.87.2 -p 80
root@raspberrypi:/usr/local/share/redmine# /etc/init.d/webrick start
[....] Starting webrick (via systemctl): webrick.serviceFailed to start webrick.service: Unit webrick.service failed to load: No such file or directory.
failed!
Подскажите, чё ему надо?
На всякий случай тело скрипта:
#!/bin/bash
### BEGIN INIT INFO
# Provides: redmine
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: redmine webrick
# Description: redmine webrick server autostart-script
### END INIT INFO
. /lib/lsb/init-functions
# Modify it to your configuration
DIR=/usr/local/share/redmine/
# Start Redmine in daemon mode.
start(){
log_daemon_msg "Starting Redmine WebRick"
cd $DIR
log_progress_msg
# ruby bin/server -d -e production &> /dev/null
ruby bin/rails server webrick -d -e production -b 0.0.0.0 -p 80
log_progress_msg
log_end_msg 0
}
# Stop Redmine daemon
stop(){
log_daemon_msg "Stopping Redmine WebRick"
RUBYPID=`ps aux | grep "ruby bin/rails server webrick -d -e production" | grep -v grep | awk '{print $2}'`
log_progress_msg
if [ "x$RUBYPID" != "x" ]; then
kill -2 $RUBYPID
fi
log_end_msg 0
}
# Check if Redmine is running
status(){
RUBYPID=`ps aux | grep "ruby bin/rails server webrick -d -e production" | grep -v grep | awk '{print $2}'`
if [ "x$RUBYPID" = "x" ]; then
echo "* Redmine is not running"
else
echo "* Redmine is running"
fi
}
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status
;;
restart|force-reload)
stop
start
;;
*)
echo "Usage: $0 {start|stop|restart|force-reload|status}"
exit 1
esac