[SOLVED] PPv4: systemd for Monkey

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Re: [SOLVED] PPv4: systemd for Monkey

Postby winestock » Sat Feb 09, 2013 1:33 am

moonman,

If I changed the monkey.service to:
$this->bbcode_second_pass_code('', '
[Unit]
Description=Monkey http server deamon
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/monkey -D
ExecStop=/bin/kill $MAINPID
ExecReload=/bin/kill $MAINPID ; /usr/bin/monkey -D
PIDFile=/var/run/monkey/monkey.pid.80

[Install]
WantedBy=multi-user.target
')

It now works. I changed Type from forking to simple.
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am

Re: [SOLVED] PPv4: systemd for Monkey

Postby winestock » Sat Feb 09, 2013 1:35 am

I take that back. It did not hang but it fails to run:

$this->bbcode_second_pass_code('', '
systemctl status monkey
monkey.service - Monkey http server deamon
Loaded: loaded (/usr/lib/systemd/system/monkey.service; enabled)
Active: failed (Result: exit-code) since Fri 2013-02-08 20:31:14 EST; 3min 12s ago
Process: 502 ExecStop=/bin/kill $MAINPID (code=exited, status=1/FAILURE)
Process: 500 ExecStart=/usr/bin/monkey -D (code=exited, status=0/SUCCESS)

Feb 08 20:31:14 WebServer systemd[1]: Started Monkey http server deamon.
Feb 08 20:31:14 WebServer monkey[500]: Monkey HTTP Daemon 1.1.1
Feb 08 20:31:14 WebServer monkey[500]: Built : Dec 14 2012 14:17:54 (gcc 4.7.2)
Feb 08 20:31:14 WebServer monkey[500]: Home : http://monkey-project.com
Feb 08 20:31:14 WebServer monkey[500]: [2013/02/08 20:31:14] [Warning] Auth: Invalid users file '(null)'
Feb 08 20:31:14 WebServer monkey[500]: [2013/02/08 20:31:14] [ Info] Background mode ON
Feb 08 20:31:14 WebServer kill[502]: usage: kill [ -s signal | -p ] [ -a ] pid ...
Feb 08 20:31:14 WebServer kill[502]: kill -l [ signal ]
Feb 08 20:31:14 WebServer systemd[1]: monkey.service: control process exited, code=exited status=1
Feb 08 20:31:14 WebServer systemd[1]: Unit monkey.service entered failed state
')
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am

Re: [SOLVED] PPv4: systemd for Monkey

Postby moonman » Sat Feb 09, 2013 1:58 am

$this->bbcode_second_pass_quote('winestock', 'O')kay I copied monkey.service directly from what you checked into https://github.com/archlinuxarm/PKGBUIL ... 613a41c54b:

/lib/systemd/system/monkey.service
$this->bbcode_second_pass_code('', '
[Unit]
Description=Monkey http server deamon
After=network.target

[Service]
Type=forking
ExecStart=/usr/bin/monkey -D
ExecStop=/bin/kill $MAINPID
ExecReload=/bin/kill $MAINPID ; /usr/bin/monkey -D
PIDFile=/var/run/monkey/monkey.pid.80

[Install]
WantedBy=multi-user.target
')

$this->bbcode_second_pass_code('', '
systemctl --system daemon-reload
systemctl start monkey
')

At this point systemctl does not come back. I have to CTRL-C to get back to the shell prompt. Does not look like it is working.


You need to edit /etc/monkey/monkey.conf, the service file is the same as before.
just install this package. This one is new. I should've updated the version...

$this->bbcode_second_pass_code('', 'pacman -R monkey
yes | pacman -Scc
pacman -U http://dl.dropbox.com/u/15043728/monkey-1.1.1-1-arm.pkg.tar.xz')
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: [SOLVED] PPv4: systemd for Monkey

Postby winestock » Sat Feb 09, 2013 2:06 am

$this->bbcode_second_pass_quote('moonman', '')$this->bbcode_second_pass_quote('winestock', 'O')kay I copied monkey.service directly from what you checked into https://github.com/archlinuxarm/PKGBUIL ... 613a41c54b:

/lib/systemd/system/monkey.service
$this->bbcode_second_pass_code('', '
[Unit]
Description=Monkey http server deamon
After=network.target

[Service]
Type=forking
ExecStart=/usr/bin/monkey -D
ExecStop=/bin/kill $MAINPID
ExecReload=/bin/kill $MAINPID ; /usr/bin/monkey -D
PIDFile=/var/run/monkey/monkey.pid.80

[Install]
WantedBy=multi-user.target
')

$this->bbcode_second_pass_code('', '
systemctl --system daemon-reload
systemctl start monkey
')

At this point systemctl does not come back. I have to CTRL-C to get back to the shell prompt. Does not look like it is working.


You need to edit /etc/monkey/monkey.conf, the service file is the same as before.
just install this package. This one is new. I should've updated the version...

$this->bbcode_second_pass_code('', 'pacman -R monkey
yes | pacman -Scc
pacman -U http://dl.dropbox.com/u/15043728/monkey-1.1.1-1-arm.pkg.tar.xz')


Thanks. I finally got it to work once I updated the monkey.conf file. By the way, there is going to be an update to Monkey to version 1.2. When that is released will it get picked up autonatically so that pacman can do the update?
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am
Top

Re: [SOLVED] PPv4: systemd for Monkey

Postby moonman » Sat Feb 09, 2013 3:52 am

Let me know when it's updated, I'll try to get it updated.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: [SOLVED] PPv4: systemd for Monkey

Postby rty » Thu Feb 14, 2013 5:35 am

Winestock, did you try to get Monkey to work with Maria ?
Alarm + Samba + NginX + Php+ MySQL + phpMyAdmin on Raspberry Pi 3, Pogoplug 4, Pogoplug E02, Seagate Goflex Home
rty
 
Posts: 75
Joined: Sun Jun 03, 2012 8:57 am
Location: Singapore

Re: [SOLVED] PPv4: systemd for Monkey

Postby winestock » Thu Feb 14, 2013 6:14 pm

$this->bbcode_second_pass_quote('rty', 'W')inestock, did you try to get Monkey to work with Maria ?


I haven't tried yet. Currently I am only using mariadb for XBMC on another PPv4.
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am
Top

Re: [SOLVED] PPv4: systemd for Monkey

Postby rty » Mon Mar 18, 2013 12:33 pm

Anyone considering migration to Monkey to run with PHP might want to wait first for the next 1.2.0 Monkey release.
There is a known bug in handling form POST method to PHP http://bugs.monkey-project.com/ticket/172
Alarm + Samba + NginX + Php+ MySQL + phpMyAdmin on Raspberry Pi 3, Pogoplug 4, Pogoplug E02, Seagate Goflex Home
rty
 
Posts: 75
Joined: Sun Jun 03, 2012 8:57 am
Location: Singapore

Previous

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 11 guests