[
https://issues.apache.org/jira/browse/BIGTOP-792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507901#comment-13507901
]
Johnny Zhang commented on BIGTOP-792:
-------------------------------------
in systemd, only "service <SERVICE_NAME> status" output is different.
there are some examples of output of "service <SERVICE_NAME> status" in
opensuse12
serviced stopped
{noformat}
hive-server.service - LSB: Starts a Hive server
Loaded: loaded (/etc/init.d/hive-server)
Active: failed (Result: exit-code) since Sat, 01 Dec 2012 03:19:48
-0500; 13min ago
Process: 11473 ExecStop=/etc/init.d/hive-server stop (code=exited,
status=0/SUCCESS)
Process: 11377 ExecStart=/etc/init.d/hive-server start (code=exited,
status=0/SUCCESS)
Main PID: 11388 (code=exited, status=143)
CGroup: name=systemd:/system/hive-server.service
Dec 01 03:19:42 opensuse12livecd hive-server[11377]: Starting (hive-server):
..done
Dec 01 03:19:42 opensuse12livecd hive-server[11377]: nohup: failed to run
command ' ': No such fi...ry
Dec 01 03:19:43 opensuse12livecd hive-server[11377]: ...killed.
Dec 01 03:19:47 opensuse12livecd hive-server[11473]: Stopping (hive-server):
..done
{noformat}
service stopped
{noformat}
solr-server.service - LSB: Solr server
Loaded: loaded (/etc/init.d/solr-server)
Active: inactive (dead) since Sat, 01 Dec 2012 03:36:39 -0500; 1s ago
Process: 11902 ExecStop=/etc/init.d/solr-server stop (code=exited,
status=0/SUCCESS)
Process: 11861 ExecStart=/etc/init.d/solr-server start (code=exited,
status=0/SUCCESS)
CGroup: name=systemd:/system/solr-server.service
Dec 01 03:35:05 opensuse12livecd solr-server[11861]: Solr server daemon agent
is not running..failed
Dec 01 03:35:05 opensuse12livecd solr-server[11861]: Starting Solr server
daemon: ..done
Dec 01 03:35:05 opensuse12livecd su[11868]: (to solr) root on none
Dec 01 03:35:07 opensuse12livecd solr-server[11861]: ...killed.
Dec 01 03:36:35 opensuse12livecd solr-server[11902]: Stopping Solr server
daemon: ..done
Dec 01 03:36:35 opensuse12livecd su[11908]: (to solr) root on none
Dec 01 03:36:39 opensuse12livecd solr-server[11902]: ...killed.
{noformat}
service started
{noformat}
solr-server.service - LSB: Solr server
Loaded: loaded (/etc/init.d/solr-server)
Active: active (exited) since Sat, 01 Dec 2012 03:35:07 -0500; 5s ago
Process: 10495 ExecStop=/etc/init.d/solr-server stop (code=exited,
status=0/SUCCESS)
Process: 11861 ExecStart=/etc/init.d/solr-server start (code=exited,
status=0/SUCCESS)
CGroup: name=systemd:/system/solr-server.service
Dec 01 03:35:05 opensuse12livecd solr-server[11861]: Solr server daemon agent
is not running..failed
Dec 01 03:35:05 opensuse12livecd solr-server[11861]: Starting Solr server
daemon: ..done
Dec 01 03:35:05 opensuse12livecd su[11868]: (to solr) root on none
Dec 01 03:35:07 opensuse12livecd solr-server[11861]: ...killed.
{noformat}
So, identify substring "Active: active", "Active: inactive", "Active: failed"
is sufficient to identify service status.
> org.apache.bigtop.itest.posix.Service needs to be updated to accomodate
> upstart/systemd
> ---------------------------------------------------------------------------------------
>
> Key: BIGTOP-792
> URL: https://issues.apache.org/jira/browse/BIGTOP-792
> Project: Bigtop
> Issue Type: Improvement
> Components: Tests
> Affects Versions: 0.5.0
> Reporter: Roman Shaposhnik
> Assignee: Johnny Zhang
> Fix For: 0.5.0
>
> Attachments: BIGTOP-792.patch.txt
>
>
> With the output and return valued drastically different on latest Linux
> distros it seems that the Service implementation needs to be updated to
> accommodate upstart/systemd.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira