-
Notifications
You must be signed in to change notification settings - Fork 849
Add NixOS support #7697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add NixOS support #7697
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,7 @@ | |
| # | ||
| [Unit] | ||
| Description=Apache Traffic Server is a fast, scalable and extensible caching proxy server. | ||
| After=syslog.target network.target | ||
| After=network.target | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| [Service] | ||
| Type=simple | ||
|
|
@@ -26,10 +26,7 @@ ExecStart=@exp_bindir@/traffic_manager $TM_DAEMON_ARGS | |
| Restart=on-failure | ||
| RestartSec=5s | ||
| LimitNOFILE=1000000 | ||
| ExecStopPost=/bin/sh -c ' \ | ||
| export TM_PIDFILE=$(@exp_bindir@/traffic_layout 2>/dev/null | grep RUNTIMEDIR | cut -d: -f2)/manager.lock ; \ | ||
| /bin/rm $TM_PIDFILE ; \ | ||
| if [[ $? -ne 0 ]]; then echo "ERROR: Unable to delete PID"; exit 1; fi' | ||
| PIDFile=@exp_runtimedir@/manager.lock | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using |
||
| TimeoutStopSec=5s | ||
| ExecReload=@exp_bindir@/traffic_ctl config reload | ||
| KillMode=process | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -204,6 +204,9 @@ do | |
| OBJ=$OPTARG | ||
| ;; | ||
| i) | ||
| if [[ "$INSTALLDIR" = /nix/store* ]]; then | ||
| bail "unsupported option: -i is disabled on Nix" | ||
| fi | ||
|
Comment on lines
+207
to
+209
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| INSTALL=1 | ||
| ;; | ||
| c) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
About half of these are replaced through configure flags when building with Nix, but I still added them for the sake of consistency.