[Unit] Description=Linx on {{ domain }} After=syslog.target After=network.target [Service] # Modify these two values and uncomment them if you have # repos with lots of files and get an HTTP error 500 because # of that ### #LimitMEMLOCK=infinity #LimitNOFILE=65535 RestartSec=2s Type=simple User={{ system_user }} Group={{ system_user }} WorkingDirectory={{ installation_directory }} ExecStart={{ binary_path | quote }} -config {{ configuration_file | quote }} Restart=always Environment="USER={{ system_user }}" Environment="HOME={{ user_directory }}" [Install] WantedBy=multi-user.target