Fix bugs in seafile init.d