[Unit] Description=Seafile # add mysql.service or postgresql.service depending on your database to the line below After=network.target mariadb.service [Service] Type=forking ExecStart=/home/seafile/seafile/seafile-server-latest/seafile.sh start ExecStop=/home/seafile/seafile/seafile-server-latest/seafile.sh stop LimitNOFILE=infinity User=seafile Group=seafile [Install] WantedBy=multi-user.target