### BEGIN INIT INFO
# Provides: seafile
# Required-Start: $local_fs $remote_fs $network $mysql
...
When I run
/etc/init.d/seafile-server start
after boot it works, but not when the init process should start seafile automatically.
--
You received this message because you are subscribed to the Google Groups "seafile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seafile+u...@googlegroups.com.
To post to this group, send email to sea...@googlegroups.com.
Visit this group at http://groups.google.com/group/seafile.
For more options, visit https://groups.google.com/d/optout.
If not try:
sudo update-rc.d seafile remove
sudo update-rc.d seafile defaults
Hi,did you find a clean solution? ( debian wheezy , and exactly the same problem)I worked around:- add $mysql on llne Required-Start: $..... of /etc/init.d/seafile-server script- moving /etc/rc2.d/S17seafile-server link to /etc/rc2.d/S19seafile-server (!)- change for each command: "sudo -u ${user}" in : su - {users} -c "path/sea???.sh start or : su - {users} -s /bin/bash -c "p.....
(option -s /bin/bash because my seafileuser has no valid shell)
- Whatever I do my /etc/init.d/seafile-server script is ok (I can start/stop the service) but the server doesn't start at boot!
Have you also [failed to run "ccnet-server -t" boot debian] error message on console at boot ?(If you don't have time to read it at screen during boot, you may apt-get install bootlogd to have the /var/log/boot ... )
My dirty hack is
Hi Lin,
I have updated my /etc/init.d/seafile-server script like you described above:
#!/bin/sh
### BEGIN INIT INFO
# Provides: seafile-server
# Required-Start: $local_fs $remote_fs $network $mysql
# Required-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts Seafile Server
# Description: starts Seafile Server
But still got the same error message:
SQLException: Failed to start connection pool -- Can't connect to MySQL server on '127.0.0.1' (111)
raised in ConnectionPool_start at src/db/ConnectionPool.c:287
Hi,
On your script /etc/init.d/seafile-server, you need to specify that "seafile server depends on mysql" like this:### BEGIN INIT INFO
# Provides: seafile
# Required-Start: $local_fs $remote_fs $network $mysql
...