# su - seafile $ cd seafile-server-latest/ $ ./seafile.sh start $ ./seahub.sh start
Using Systemd directions from this page: http://manual.seafile.com/deploy/start_Seafile_at_system_bootup.htmlHere are the two files I created.
[Unit]
Description=Seafile
# add mysql.service or postgresql.service depending on your database to the line below
After=network.target mysql.service
[Service]
Type=oneshot
ExecStart=$/home/seafile/seafile-server-latest/seafile.sh start
ExecStop=$/home/seafile/seafile-server-latest/seafile.sh stop
RemainAfterExit=yes
User=seafile
Group=seafile
[Install]
WantedBy=multi-user.target
And
[Unit]
Description=Seafile hub
After=network.target seafile.service
[Service]
# change start to start-fastcgi if you want to run fastcgi
ExecStart=$/home/seafile/seafile-server-latest/seahub.sh start
ExecStop=$/home/seafile/seafile-server-latest/seahub.sh stop
User=seafile
Group=seafile
Type=oneshot
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
__________________________________________________
What am I missing? Thanks!
JCU
ExecStart=/home/seafile/seafile-server-latest/seafile.sh start > /tmp/seafile.init.log
--
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.
--
You received this message because you are subscribed to a topic in the Google Groups "seafile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/seafile/NknOL_lv14I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to seafile+u...@googlegroups.com.
# add mysql.service or postgresql.service depending on your database to the.........
In Cent OS, I have Mysql but it is called mariadb. I do not know why. When I change the line to this:
After=network.target mariadb.service
Success!!!!
Great product. Other than the autostart on boot, easy to set up and use.