[Unit] Description=Matrix Science Mascot Service Wants=network.target [Service] # Set the installation path and user name of ms-monitor.exe WorkingDirectory=/usr/local/mascot/bin PIDFile=/usr/local/mascot/bin/monitor.pid User=root # Each active sequence database uses 6 open filehandles. # If you have more than 170 databases, the default soft limit 1024 is insufficient. LimitNOFILE=4096 Type=forking ExecStart=sh -c ./ms-monitor.exe [Install] WantedBy=multi-user.target