[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15678848#comment-15678848 ] ASF GitHub Bot commented on TINKERPOP-980: -- Github user asfgit closed the pull request at: https://github.com/apache/tinkerpop/pull/439 > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > Labels: breaking > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on linux: > https://groups.google.com/forum/#!msg/gremlin-users/uA48IQ3YJcw/4KnUKIS8HI4J > Here is a link to the gist for the service: > https://gist.github.com/dkuppitz/20bda51e3465a612cd9b > I think it would be great to include this or a way to daemonize the server > into the tinkerpop distribution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15674633#comment-15674633 ] ASF GitHub Bot commented on TINKERPOP-980: -- Github user dkuppitz commented on the issue: https://github.com/apache/tinkerpop/pull/439 I can't test Systemd, but I've installed Gremlin Server as a service and that worked like a charm. Manual starts / restarts / stops /status requests worked as expected. Killing the process didn't lead to any unexpected behavior. Next I installed the service as a real system service (I may have overlooked it, but I believe this is not mentioned in the docs): ``` daniel@cube ~ $ sudo update-rc.d -f gremlin-server defaults Adding system startup for /etc/init.d/gremlin-server ... /etc/rc0.d/K20gremlin-server -> ../init.d/gremlin-server /etc/rc1.d/K20gremlin-server -> ../init.d/gremlin-server /etc/rc6.d/K20gremlin-server -> ../init.d/gremlin-server /etc/rc2.d/S20gremlin-server -> ../init.d/gremlin-server /etc/rc3.d/S20gremlin-server -> ../init.d/gremlin-server /etc/rc4.d/S20gremlin-server -> ../init.d/gremlin-server /etc/rc5.d/S20gremlin-server -> ../init.d/gremlin-server daniel@cube ~ $ sudo update-rc.d -f gremlin-server enable update-rc.d: warning: start runlevel arguments (none) do not match gremlin-server Default-Start values (2 3 4 5) update-rc.d: warning: stop runlevel arguments (none) do not match gremlin-server Default-Stop values (0 1 6) Enabling system startup links for /etc/init.d/gremlin-server ... Removing any system startup links for /etc/init.d/gremlin-server ... /etc/rc0.d/K20gremlin-server /etc/rc1.d/K20gremlin-server /etc/rc2.d/S20gremlin-server /etc/rc3.d/S20gremlin-server /etc/rc4.d/S20gremlin-server /etc/rc5.d/S20gremlin-server /etc/rc6.d/K20gremlin-server Adding system startup for /etc/init.d/gremlin-server ... /etc/rc0.d/K20gremlin-server -> ../init.d/gremlin-server /etc/rc1.d/K20gremlin-server -> ../init.d/gremlin-server /etc/rc6.d/K20gremlin-server -> ../init.d/gremlin-server /etc/rc2.d/S20gremlin-server -> ../init.d/gremlin-server /etc/rc3.d/S20gremlin-server -> ../init.d/gremlin-server /etc/rc4.d/S20gremlin-server -> ../init.d/gremlin-server /etc/rc5.d/S20gremlin-server -> ../init.d/gremlin-server ``` Then I rebooted my system and Gremlin Server started right away. Great! Finally I removed the system service: ``` daniel@cube ~ $ sudo update-rc.d gremlin-server disable update-rc.d: warning: start runlevel arguments (none) do not match gremlin-server Default-Start values (2 3 4 5) update-rc.d: warning: stop runlevel arguments (none) do not match gremlin-server Default-Stop values (0 1 6) Disabling system startup links for /etc/init.d/gremlin-server ... Removing any system startup links for /etc/init.d/gremlin-server ... /etc/rc0.d/K20gremlin-server /etc/rc1.d/K20gremlin-server /etc/rc2.d/S20gremlin-server /etc/rc3.d/S20gremlin-server /etc/rc4.d/S20gremlin-server /etc/rc5.d/S20gremlin-server /etc/rc6.d/K20gremlin-server Adding system startup for /etc/init.d/gremlin-server ... /etc/rc0.d/K20gremlin-server -> ../init.d/gremlin-server /etc/rc1.d/K20gremlin-server -> ../init.d/gremlin-server /etc/rc6.d/K20gremlin-server -> ../init.d/gremlin-server /etc/rc2.d/K80gremlin-server -> ../init.d/gremlin-server /etc/rc3.d/K80gremlin-server -> ../init.d/gremlin-server /etc/rc4.d/K80gremlin-server -> ../init.d/gremlin-server /etc/rc5.d/K80gremlin-server -> ../init.d/gremlin-server daniel@cube ~ $ sudo update-rc.d -f gremlin-server remove Removing any system startup links for /etc/init.d/gremlin-server ... /etc/rc0.d/K20gremlin-server /etc/rc1.d/K20gremlin-server /etc/rc2.d/K80gremlin-server /etc/rc3.d/K80gremlin-server /etc/rc4.d/K80gremlin-server /etc/rc5.d/K80gremlin-server /etc/rc6.d/K20gremlin-server ``` That's it. No surprises, everything's working well. Nothing to add here, except ... VOTE: +1 > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > Labels: breaking > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on
[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15672616#comment-15672616 ] ASF GitHub Bot commented on TINKERPOP-980: -- Github user dkuppitz commented on a diff in the pull request: https://github.com/apache/tinkerpop/pull/439#discussion_r88381456 --- Diff: docs/src/upgrade/release-3.3.x.asciidoc --- @@ -31,3 +31,20 @@ Please see the link:https://github.com/apache/tinkerpop/blob/3.3.3/CHANGELOG.asc Upgrading for Users ~~~ + + +Gremlin-server.sh and Init Scripts +^^ + +`gremlin-server.sh` is now also an init script and can no longer be started without parameters. To start it in the foreground with defaults like previous usage, please use the `console` parameter. Also, `gremlin-server.sh` will continue to start in the foreground when provided a yaml configuration file. + +How to install as a service has been added to the link:http://tinkerpop.apache.org/docs/3.2.3/reference/#_as_a_service[Reference Documentation - As A Service]. --- End diff -- The version in this (and the following) link should be 3.3.3. > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > Labels: breaking > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on linux: > https://groups.google.com/forum/#!msg/gremlin-users/uA48IQ3YJcw/4KnUKIS8HI4J > Here is a link to the gist for the service: > https://gist.github.com/dkuppitz/20bda51e3465a612cd9b > I think it would be great to include this or a way to daemonize the server > into the tinkerpop distribution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15672619#comment-15672619 ] ASF GitHub Bot commented on TINKERPOP-980: -- Github user dkuppitz commented on a diff in the pull request: https://github.com/apache/tinkerpop/pull/439#discussion_r88381583 --- Diff: gremlin-server/src/main/bin/gremlin-server.conf --- @@ -0,0 +1,42 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +# initd: debug the initd script +#DEBUG=1 + +# initd: gremlin server install location --- End diff -- I know, it's only a comment, but gremlin server => Gremlin Server > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > Labels: breaking > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on linux: > https://groups.google.com/forum/#!msg/gremlin-users/uA48IQ3YJcw/4KnUKIS8HI4J > Here is a link to the gist for the service: > https://gist.github.com/dkuppitz/20bda51e3465a612cd9b > I think it would be great to include this or a way to daemonize the server > into the tinkerpop distribution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15672614#comment-15672614 ] ASF GitHub Bot commented on TINKERPOP-980: -- Github user dkuppitz commented on a diff in the pull request: https://github.com/apache/tinkerpop/pull/439#discussion_r88381587 --- Diff: gremlin-server/src/main/bin/gremlin-server.conf --- @@ -0,0 +1,42 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +# initd: debug the initd script +#DEBUG=1 + +# initd: gremlin server install location +#GREMLIN_HOME= + +# initd: Yaml file passed to gremlin server. Path can be absolute or relative to GREMLIN_HOME e.g. conf/gremlin-server.yaml --- End diff -- same as above > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > Labels: breaking > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on linux: > https://groups.google.com/forum/#!msg/gremlin-users/uA48IQ3YJcw/4KnUKIS8HI4J > Here is a link to the gist for the service: > https://gist.github.com/dkuppitz/20bda51e3465a612cd9b > I think it would be great to include this or a way to daemonize the server > into the tinkerpop distribution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15672617#comment-15672617 ] ASF GitHub Bot commented on TINKERPOP-980: -- Github user dkuppitz commented on a diff in the pull request: https://github.com/apache/tinkerpop/pull/439#discussion_r88381003 --- Diff: docs/src/reference/gremlin-applications.asciidoc --- @@ -1482,6 +1513,62 @@ and standard deviation evaluation times, as well as the 75th, 95th, 98th, 99th a mean, and standard deviation evaluation times, as well as the 75th, 95th, 98th, 99th and 99.9th percentile evaluation times. +As A Service + + +Gremlin server can be configured to run as a service. + +Init.d (SysV) ++ + +Link `bin/gremlin-server.sh` to `init.d` +Be sure to set RUNAS to the service user in `bin/gremlin-server.conf` + +[source,bash] + +# Install +ln -s /path/to/apache-tinkerpop-gremlin-server-x.y.z/bin/gremlin-server.sh /etc/init.d/gremlin-server + +# Systems with chkconfig/service. E.g. Fedora, Red Hat +chkconfig --add gremlin-server + +# Start +service gremlin-server start + +# Or call directly +/etc/init.d/gremlin-server restart + + + +Systemd + +To install, copy the this service template to /etc/systemd/system/gremlin.service --- End diff -- Minor typo: "the this" > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > Labels: breaking > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on linux: > https://groups.google.com/forum/#!msg/gremlin-users/uA48IQ3YJcw/4KnUKIS8HI4J > Here is a link to the gist for the service: > https://gist.github.com/dkuppitz/20bda51e3465a612cd9b > I think it would be great to include this or a way to daemonize the server > into the tinkerpop distribution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15672618#comment-15672618 ] ASF GitHub Bot commented on TINKERPOP-980: -- Github user dkuppitz commented on a diff in the pull request: https://github.com/apache/tinkerpop/pull/439#discussion_r88381061 --- Diff: docs/src/reference/gremlin-applications.asciidoc --- @@ -1482,6 +1513,62 @@ and standard deviation evaluation times, as well as the 75th, 95th, 98th, 99th a mean, and standard deviation evaluation times, as well as the 75th, 95th, 98th, 99th and 99.9th percentile evaluation times. +As A Service + + +Gremlin server can be configured to run as a service. + +Init.d (SysV) ++ + +Link `bin/gremlin-server.sh` to `init.d` +Be sure to set RUNAS to the service user in `bin/gremlin-server.conf` + +[source,bash] + +# Install +ln -s /path/to/apache-tinkerpop-gremlin-server-x.y.z/bin/gremlin-server.sh /etc/init.d/gremlin-server + +# Systems with chkconfig/service. E.g. Fedora, Red Hat +chkconfig --add gremlin-server + +# Start +service gremlin-server start + +# Or call directly +/etc/init.d/gremlin-server restart + + + +Systemd + +To install, copy the this service template to /etc/systemd/system/gremlin.service +and update the paths `/path/to/apache-tinkerpop-gremlin-server` with the actual install path of gremlin server. --- End diff -- gremlin server => Gremlin Server > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > Labels: breaking > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on linux: > https://groups.google.com/forum/#!msg/gremlin-users/uA48IQ3YJcw/4KnUKIS8HI4J > Here is a link to the gist for the service: > https://gist.github.com/dkuppitz/20bda51e3465a612cd9b > I think it would be great to include this or a way to daemonize the server > into the tinkerpop distribution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15672615#comment-15672615 ] ASF GitHub Bot commented on TINKERPOP-980: -- Github user dkuppitz commented on a diff in the pull request: https://github.com/apache/tinkerpop/pull/439#discussion_r88381095 --- Diff: docs/src/reference/gremlin-applications.asciidoc --- @@ -1482,6 +1513,62 @@ and standard deviation evaluation times, as well as the 75th, 95th, 98th, 99th a mean, and standard deviation evaluation times, as well as the 75th, 95th, 98th, 99th and 99.9th percentile evaluation times. +As A Service + + +Gremlin server can be configured to run as a service. + +Init.d (SysV) ++ + +Link `bin/gremlin-server.sh` to `init.d` +Be sure to set RUNAS to the service user in `bin/gremlin-server.conf` + +[source,bash] + +# Install +ln -s /path/to/apache-tinkerpop-gremlin-server-x.y.z/bin/gremlin-server.sh /etc/init.d/gremlin-server + +# Systems with chkconfig/service. E.g. Fedora, Red Hat +chkconfig --add gremlin-server + +# Start +service gremlin-server start + +# Or call directly +/etc/init.d/gremlin-server restart + + + +Systemd + +To install, copy the this service template to /etc/systemd/system/gremlin.service +and update the paths `/path/to/apache-tinkerpop-gremlin-server` with the actual install path of gremlin server. + +[source,bash] + +[Unit] +Description=Apache Tinkerpop Gremlin server daemon --- End diff -- Tinkerpop => TinkerPop Gremlin server => Gremlin Server > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > Labels: breaking > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on linux: > https://groups.google.com/forum/#!msg/gremlin-users/uA48IQ3YJcw/4KnUKIS8HI4J > Here is a link to the gist for the service: > https://gist.github.com/dkuppitz/20bda51e3465a612cd9b > I think it would be great to include this or a way to daemonize the server > into the tinkerpop distribution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15663539#comment-15663539 ] ASF GitHub Bot commented on TINKERPOP-980: -- Github user spmallette commented on the issue: https://github.com/apache/tinkerpop/pull/439 @PommeVerte do you think you might have some free time soon to review this and vote? > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > Labels: breaking > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on linux: > https://groups.google.com/forum/#!msg/gremlin-users/uA48IQ3YJcw/4KnUKIS8HI4J > Here is a link to the gist for the service: > https://gist.github.com/dkuppitz/20bda51e3465a612cd9b > I think it would be great to include this or a way to daemonize the server > into the tinkerpop distribution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15612409#comment-15612409 ] ASF GitHub Bot commented on TINKERPOP-980: -- Github user spmallette commented on the issue: https://github.com/apache/tinkerpop/pull/439 LGTM > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > Labels: breaking > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on linux: > https://groups.google.com/forum/#!msg/gremlin-users/uA48IQ3YJcw/4KnUKIS8HI4J > Here is a link to the gist for the service: > https://gist.github.com/dkuppitz/20bda51e3465a612cd9b > I think it would be great to include this or a way to daemonize the server > into the tinkerpop distribution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15612379#comment-15612379 ] ASF GitHub Bot commented on TINKERPOP-980: -- Github user robertdale commented on the issue: https://github.com/apache/tinkerpop/pull/439 @spmallette I pushed the windows changes. can you review? > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > Labels: breaking > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on linux: > https://groups.google.com/forum/#!msg/gremlin-users/uA48IQ3YJcw/4KnUKIS8HI4J > Here is a link to the gist for the service: > https://gist.github.com/dkuppitz/20bda51e3465a612cd9b > I think it would be great to include this or a way to daemonize the server > into the tinkerpop distribution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15612208#comment-15612208 ] ASF GitHub Bot commented on TINKERPOP-980: -- Github user spmallette commented on the issue: https://github.com/apache/tinkerpop/pull/439 Tested all the command line options and all work nicely. Good documentation. It did occur to me that we don't have analogous features for windows in that the gremlin-server.sh does not behave like the gremlin-server.bat. I'd suggest two things: 1. Maybe just add a "WARNING:" to the docs to mention that discrepancy and that gremlin-server.bat always starts Gremlin Server in the foreground. 2. Change gremlin-server.bat to use "install" instead of "-i" Other than that, looks good to me: VOTE +1 > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > Labels: breaking > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on linux: > https://groups.google.com/forum/#!msg/gremlin-users/uA48IQ3YJcw/4KnUKIS8HI4J > Here is a link to the gist for the service: > https://gist.github.com/dkuppitz/20bda51e3465a612cd9b > I think it would be great to include this or a way to daemonize the server > into the tinkerpop distribution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15612012#comment-15612012 ] ASF GitHub Bot commented on TINKERPOP-980: -- Github user robertdale commented on the issue: https://github.com/apache/tinkerpop/pull/439 Rebased. Retested. VOTE +1 > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > Labels: breaking > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on linux: > https://groups.google.com/forum/#!msg/gremlin-users/uA48IQ3YJcw/4KnUKIS8HI4J > Here is a link to the gist for the service: > https://gist.github.com/dkuppitz/20bda51e3465a612cd9b > I think it would be great to include this or a way to daemonize the server > into the tinkerpop distribution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15611835#comment-15611835 ] ASF GitHub Bot commented on TINKERPOP-980: -- Github user robertdale commented on the issue: https://github.com/apache/tinkerpop/pull/439 @PommeVerte do you mind if we move the ubuntu script to a separate pull request so this one can move forward? > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > Labels: breaking > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on linux: > https://groups.google.com/forum/#!msg/gremlin-users/uA48IQ3YJcw/4KnUKIS8HI4J > Here is a link to the gist for the service: > https://gist.github.com/dkuppitz/20bda51e3465a612cd9b > I think it would be great to include this or a way to daemonize the server > into the tinkerpop distribution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15611856#comment-15611856 ] ASF GitHub Bot commented on TINKERPOP-980: -- Github user spmallette commented on the issue: https://github.com/apache/tinkerpop/pull/439 I believe @PommeVerte is on a month long holiday at this point. imo, i think we could move the ubuntu script off to a different ticket as you have a lot of work in place here. I would just rebase on master, move your changelog/upgrade docs stuff to be under 3.3.0 and we can move to vote. And of course, now that you're a committer @robertdale you should VOTE on your own stuff for a free +1 :) > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > Labels: breaking > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on linux: > https://groups.google.com/forum/#!msg/gremlin-users/uA48IQ3YJcw/4KnUKIS8HI4J > Here is a link to the gist for the service: > https://gist.github.com/dkuppitz/20bda51e3465a612cd9b > I think it would be great to include this or a way to daemonize the server > into the tinkerpop distribution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15546241#comment-15546241 ] ASF GitHub Bot commented on TINKERPOP-980: -- Github user PommeVerte commented on the issue: https://github.com/apache/tinkerpop/pull/439 I'm currently on some ressource intensive tasks so it's hard for me to bounce back and forth between projects but I would like to give this a run on ubuntu 14.04. I suspect that sysV might work out of the box with a simple change in commands. Will give this a spin asap. > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > Labels: breaking > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on linux: > https://groups.google.com/forum/#!msg/gremlin-users/uA48IQ3YJcw/4KnUKIS8HI4J > Here is a link to the gist for the service: > https://gist.github.com/dkuppitz/20bda51e3465a612cd9b > I think it would be great to include this or a way to daemonize the server > into the tinkerpop distribution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15545257#comment-15545257 ] ASF GitHub Bot commented on TINKERPOP-980: -- Github user robertdale commented on the issue: https://github.com/apache/tinkerpop/pull/439 I just tested with backgrounding the job and killing that. That also still works. > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > Labels: breaking > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on linux: > https://groups.google.com/forum/#!msg/gremlin-users/uA48IQ3YJcw/4KnUKIS8HI4J > Here is a link to the gist for the service: > https://gist.github.com/dkuppitz/20bda51e3465a612cd9b > I think it would be great to include this or a way to daemonize the server > into the tinkerpop distribution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15545254#comment-15545254 ] ASF GitHub Bot commented on TINKERPOP-980: -- Github user spmallette commented on the issue: https://github.com/apache/tinkerpop/pull/439 oh - right - you had said that. sorry > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > Labels: breaking > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on linux: > https://groups.google.com/forum/#!msg/gremlin-users/uA48IQ3YJcw/4KnUKIS8HI4J > Here is a link to the gist for the service: > https://gist.github.com/dkuppitz/20bda51e3465a612cd9b > I think it would be great to include this or a way to daemonize the server > into the tinkerpop distribution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15545237#comment-15545237 ] ASF GitHub Bot commented on TINKERPOP-980: -- Github user spmallette commented on the issue: https://github.com/apache/tinkerpop/pull/439 It occurred to me that it would seem there must be a place that gremlin-server.sh is used in doc generation - and here it is: https://github.com/apache/tinkerpop/blob/8ab682fef3e3da12904cb0d825abf4cc1ba8235a/docs/preprocessor/preprocess.sh#L84 I assume that command will no longer work with these changes and a fix is needed there? @dkuppitz any other secret areas you know about where gremlin-server.sh is used? > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > Labels: breaking > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on linux: > https://groups.google.com/forum/#!msg/gremlin-users/uA48IQ3YJcw/4KnUKIS8HI4J > Here is a link to the gist for the service: > https://gist.github.com/dkuppitz/20bda51e3465a612cd9b > I think it would be great to include this or a way to daemonize the server > into the tinkerpop distribution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15536357#comment-15536357 ] ASF GitHub Bot commented on TINKERPOP-980: -- Github user robertdale commented on the issue: https://github.com/apache/tinkerpop/pull/439 Cool. I was wondering how to link. Didn't think it was absolute. I hope it works. Tried testing with `./docker/build.sh -d` but it hangs at installing plugins `* hadoop-gremlin ...`. > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > Labels: breaking > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on linux: > https://groups.google.com/forum/#!msg/gremlin-users/uA48IQ3YJcw/4KnUKIS8HI4J > Here is a link to the gist for the service: > https://gist.github.com/dkuppitz/20bda51e3465a612cd9b > I think it would be great to include this or a way to daemonize the server > into the tinkerpop distribution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15530388#comment-15530388 ] ASF GitHub Bot commented on TINKERPOP-980: -- Github user robertdale commented on the issue: https://github.com/apache/tinkerpop/pull/439 Maybe if the script detects that it's called via link with no parameters, then it's in initd mode and displays help. If the script is called directly with no parameters, then it just runs in foreground. Then there's no breaking change. > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on linux: > https://groups.google.com/forum/#!msg/gremlin-users/uA48IQ3YJcw/4KnUKIS8HI4J > Here is a link to the gist for the service: > https://gist.github.com/dkuppitz/20bda51e3465a612cd9b > I think it would be great to include this or a way to daemonize the server > into the tinkerpop distribution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15530370#comment-15530370 ] ASF GitHub Bot commented on TINKERPOP-980: -- Github user robertdale commented on the issue: https://github.com/apache/tinkerpop/pull/439 Upstart looks simple enough. I don't know if the one @dkuppitz created, referenced in TINKERPOP-980 , is still viable. But I can't test. Any volunteers? I would have to say that it's not customary for systemd/upstart templates to be in `bin/`. They're really not binaries, more like configuration for those apps. Maybe create an `extras/` dir? The initd script is a real, executable script with `start, stop, status`. I didn't want to modify `gremlin-server.sh` since it has some functionality over a pure init script like install deps, run in foreground, pass conf file. However, it also has its short-comings like it can only be run in the install dir. The initd script can be run from anywhere and also can be directly referenced from initd. That said, it's not unusual for the main server script to also be the initd script. My preference would be to merge the two. But there *should* be a breaking change in that executing `gremlin-server.sh` would show help instead of running in the foreground. Would probably add a new option to run in foreground, `start -f`. Passing a conf file can still work, with or without start. `-i` can still work. > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on linux: > https://groups.google.com/forum/#!msg/gremlin-users/uA48IQ3YJcw/4KnUKIS8HI4J > Here is a link to the gist for the service: > https://gist.github.com/dkuppitz/20bda51e3465a612cd9b > I think it would be great to include this or a way to daemonize the server > into the tinkerpop distribution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15527920#comment-15527920 ] ASF GitHub Bot commented on TINKERPOP-980: -- GitHub user robertdale opened a pull request: https://github.com/apache/tinkerpop/pull/439 TINKERPOP-980: added sysv and systemd init scripts I don't know if you want all of this in bin/. I could definitely see the systemd gremlin-server.service moving out since it's more of a template but I don't know where else to put it. You can merge this pull request into a Git repository by running: $ git pull https://github.com/robertdale/tinkerpop TINKERPOP-980 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/tinkerpop/pull/439.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #439 commit 84ddacd6a88eb8291a3a5df1a7c5a0b225e1f5fd Author: Robert DaleDate: 2016-09-28T00:27:47Z added sysv and systemd init scripts > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on linux: > https://groups.google.com/forum/#!msg/gremlin-users/uA48IQ3YJcw/4KnUKIS8HI4J > Here is a link to the gist for the service: > https://gist.github.com/dkuppitz/20bda51e3465a612cd9b > I think it would be great to include this or a way to daemonize the server > into the tinkerpop distribution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TINKERPOP-980) Add a service script or daemon mode in the distribution
[ https://issues.apache.org/jira/browse/TINKERPOP-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15527459#comment-15527459 ] Robert Dale commented on TINKERPOP-980: --- I'll provide a SysV init and systemd file for 3.2. > Add a service script or daemon mode in the distribution > --- > > Key: TINKERPOP-980 > URL: https://issues.apache.org/jira/browse/TINKERPOP-980 > Project: TinkerPop > Issue Type: Improvement > Components: server >Affects Versions: 3.0.2-incubating >Reporter: Jeremy Hanna >Assignee: Dylan Millikin >Priority: Minor > > Based on this discussion, it looks like there was an example from [~dkuppitz] > on how to create a gremlin server service on linux: > https://groups.google.com/forum/#!msg/gremlin-users/uA48IQ3YJcw/4KnUKIS8HI4J > Here is a link to the gist for the service: > https://gist.github.com/dkuppitz/20bda51e3465a612cd9b > I think it would be great to include this or a way to daemonize the server > into the tinkerpop distribution. -- This message was sent by Atlassian JIRA (v6.3.4#6332)