facebook / facebook/hhvm

How to use HHVM with systemd / journald / syslog?

Open
#4,785 2 comments 0 reactions 0 assignees View on GitHub
documentation external
Dominant language
C++
Stars
18.7k
Forks
3.1k
Avg merge
1h 47m
Merged PRs (30d)
2

Description

I'm experimenting with hhvm on Debian 7 (Wheezy). I have systemd 215 installed and am using this unit file to run hhvm:

``` ini
[Unit]
Description=hhvm
After=network.target

[Service]
Type=oneshot
ExecStart=/etc/init.d/hhvm start
ExecStop=/etc/init.d/hhvm stop
RemainAfterExit=true

[Install]
WantedBy=multi-user.target
```

But I can't figure out how to get it to work with journald (i.e. I don't want it to log to a file).

I tried messing with these variables in `/etc/hhvm/server.ini` but nothing helped:
- `hhvm.log.use_syslog`
- `hvm.log.file`
- `hhvm.log.use_log_file`

I'd always get this error when running `systemctl start hhvm.service`:

> **Log file not specified under daemon mode.**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.