-
Notifications
You must be signed in to change notification settings - Fork 268
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
yaws configured in systemd isn't recognized by yaws on the command line #404
Comments
Make sure
|
That could obviously work. ( I might be mistaken, but I don't think I have seen any explanations of this in the manual). |
The Also, general advice is to avoid running as the root user; you should instead make a user account for the web server and run it under that account. Doing that would also fix this |
installed yaws on Debian 10 (buster)
Linux deby 4.19.0-10-amd64 #1 SMP Debian 4.19.132-1 (2020-07-24) x86_64 GNU/Linux
root@deby:/etc/yaws# yaws --version
Yaws 2.0.6
==============
systemctl status yaws.service
● yaws.service - High performance HTTP 1.1 webserver written in Erlang
Loaded: loaded (/lib/systemd/system/yaws.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2020-09-02 22:56:50 PDT; 12min ago
Process: 26434 ExecStart=/usr/bin/yaws --conf $YAWS_CONF --id $YAWS_ID --daemon $DAEMON_OPTS (code=exited, status=0/SUCCESS)
Process: 26448 ExecStartPost=/usr/bin/yaws --id $YAWS_ID --wait-started=10 (code=exited, status=0/SUCCESS)
Tasks: 20 (limit: 4915)
Memory: 26.6M
CGroup: /system.slice/yaws.service
├─26449 /usr/lib/erlang/erts-10.2.4/bin/beam.smp -K true -- -root /usr/lib/erlang -progname erl -- -home /var/cache/yaws -- -noshell -noinput -heart -pa /usr/lib/yaws/ebin -run yaws -
├─26456 erl_child_setup 1024
└─26479 heart -pid 26449
Sep 02 22:56:48 deby systemd[1]: Starting High performance HTTP 1.1 webserver written in Erlang...
Sep 02 22:56:50 deby systemd[1]: Started High performance HTTP 1.1 webserver written in Erlang.
yaws --ls
Id Status Owner
default stopped root
deby_yaws stopped root
deby stopped root
systemctl stop yaws
root@deby:/etc/yaws# yaws --id deby -D --heart
root@deby:/etc/yaws# yaws --id deby --status
IP Port Connections Sessions Requests
192.168.0.20 8080 0 1 0
0.0.0.0 8443 0 1 0
Uptime: 0 Days, 0 Hours, 0 Minutes
The text was updated successfully, but these errors were encountered: