Skip to content

yaws configured in systemd isn't recognized by yaws on the command line #404

@slavamas

Description

@slavamas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions