Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Linux: SystemD
(edit)
Revision as of 14:25, 10 May 2018
512 bytes added
,
14:25, 10 May 2018
no edit summary
Line 23:
Line 23:
if $programname == '<your program identifier>' then /path/to/log/file.log
if $programname == '<your program identifier>' then /path/to/log/file.log
if $programname == '<your program identifier>' then ~
if $programname == '<your program identifier>' then ~
+
+
== /etc/systemd/system/example.service ==
+
<nowiki>[Unit]
+
Description=Tenkaichi Vegeta-server (Tentacle)
+
After=network.target
+
+
[Service]
+
User=tenkaichi
+
Group=tenkaichi
+
EnvironmentFile=/tenkaichi/vegeta-server/cfg/environment.cfg
+
StandardOutput=syslog
+
StandardError=syslog
+
SyslogIdentifier=Vegeta-Tentacle
+
Restart=always
+
+
ExecStart=/usr/local/bin/tentacle_server -o -a ${SERVER_IP} -p ${PORT} -s ${INPUT_DIR} -v -m ${MAX_SIZE} \
+
-e ${SSL_CERT} -k ${SSL_CERTKEY}
+
+
[Install]
+
WantedBy=multi-user.target
+
</nowiki>
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version