[Unit] Description=Tor the Onion Router After=network.target # # Name: /usr/lib/systemd/system/tor.service (SystemD service file) # [Service] Type=notify EnvironmentFile=-/etc/sysconfig/tor #ExecStart=/usr/opt/tor/bin/tor ExecStart=/etc/init.d/tor start # above requires SysV Init counterpart, but works #ExecReload=/bin/kill -HUP $MAINPID KillMode=process Restart=on-failure RestartPreventExitStatus=255 TasksMax=infinity [Install] WantedBy=multi-user.target