Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:systemd_service_script [2018/03/23 14:52] billdozor |
linux_wiki:systemd_service_script [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 141: | Line 141: | ||
WantedBy=multi-user.target | WantedBy=multi-user.target | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Example: Apache HTTPD Compiled ===== | ||
+ | |||
+ | Creating a service unit file for a locally compiled and installed Apache web server. | ||
+ | |||
+ | \\ | ||
+ | / | ||
+ | <code bash> | ||
+ | [Unit] | ||
+ | Description=Apache Web Server | ||
+ | After=network.target remote-fs.target nss-lookup.target | ||
+ | |||
+ | [Service] | ||
+ | Type=forking | ||
+ | PIDFile=/ | ||
+ | ExecStart=/ | ||
+ | ExecStop=/ | ||
+ | ExecReload=/ | ||
+ | PrivateTmp=true | ||
+ | LimitNOFILE=infinity | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | Reload systemd< | ||
+ | |||
+ | \\ | ||
+ | Enable/ | ||
+ | systemctl start httpd-local</ | ||
---- | ---- |