You are not logged in.

#1 2013-05-27 10:53:02

Peleke
Member
Registered: 2013-05-27
Posts: 11
Website

How to use Monkey HTTP Webserver with systemctl?

I am completely new to arch linux and want to test the Monkey HTTP webserver (https://aur.archlinux.org/packages/monkey/).
After installation I tried it with

/etc/rc.d/monkey start

(as told by the application after installation) but got those warnings:

/etc/rc.d/monkey: line 3: /etc/rc.conf: No such file or directory
/etc/rc.d/monkey: line 4: /etc/rc.d/functions: No such file or directory
/etc/rc.d/monkey: line 8: get_pid: command not found
/etc/rc.d/monkey: line 12: stat_busy: command not found
/etc/rc.d/monkey: line 15: stat_fail: command not found

Then I tried

sudo systemctl start monkey

but that gave me

Failed to issue method call: Unit monkey.service failed to load: No such file or directory. See system logs and 'systemctl status monkey.service' for details.
[peleke@archsrv1 root]$ sudo systemctl status monkey.service
monkey.service
   Loaded: error (Reason: No such file or directory)
   Active: inactive (dead)

How can I fix that?
Thanks!

Offline

#2 2013-05-27 10:55:34

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,041

Re: How to use Monkey HTTP Webserver with systemctl?

The package does not provide any systemd service files, so it looks like you'll have to make your own. Use the provided rc file and the systemd.unit man page as guides.

Last edited by jakobcreutzfeldt (2013-05-27 10:55:54)

Offline

#3 2013-05-27 10:57:30

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,700
Website

Re: How to use Monkey HTTP Webserver with systemctl?

EDIT: A single google search for 'monkeyhttp service systemd' found: https://wiki.archlinux.org/index.php/Sy … ver_deamon

You should ask the maintainer of this package to provide a tested .service file.  There appears to be a pending one upstream as well: http://bugs.monkey-project.com/ticket/60

Last edited by graysky (2013-05-27 11:01:23)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2013-05-28 06:13:26

Peleke
Member
Registered: 2013-05-27
Posts: 11
Website

Re: How to use Monkey HTTP Webserver with systemctl?

Thanks, problem and package solved/updated ;-)

Offline

Board footer

Powered by FluxBB