I want to convert this old script file to .service file which is used by systemctl. I have converted as much as I know, but I am getting error code 1 whenever I try to start the service.
#! /bin/sh
### BEGIN INIT INFO
# Provides: daemonsync
# Required-Start: $remote_fs $syslog
#...