-
-
Save slaveofcode/ae5d0ed409747436fc76b8d25100fee2 to your computer and use it in GitHub Desktop.
nsqd, nsqdlookupd systemd service files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=NSQD | |
After=network.target | |
[Service] | |
WorkingDirectory=/usr/local/nsq | |
ExecStart=/usr/local/nsq/bin/nsqd -http-address 127.0.0.1:4151 -tcp-address 127.0.0.1:4150 -lookupd-tcp-address 127.0.0.1:4160 | |
ExecReload=/bin/kill -HUP $MAINPID | |
Type=simple | |
KillMode=process | |
Restart=on-failure | |
RestartSec=10s | |
User=root | |
[Install] | |
WantedBy=multi-user.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=NSQLookupD | |
After=network.target | |
[Service] | |
WorkingDirectory=/usr/local/nsq | |
ExecStart=/usr/local/nsq/bin/nsqlookupd -tcp-address 127.0.0.1:4160 -http-address 127.0.0.1:4161 | |
ExecReload=/bin/kill -HUP $MAINPID | |
Type=simple | |
KillMode=process | |
Restart=on-failure | |
RestartSec=10s | |
User=root | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment