Command work on terminal but not wokking as system service Ubuntu 18.04 server

I have checked again and again on terminal and ./go.sh both working but not able to start as service. I know i am doing it wrong but not sure what. /root/go.sh #!/usr/bin/env bash export PATH=/sbin:/usr/sbin:/bin:/usr/bin /root/goweb/bin/echoip -t=/root/goweb/bin/index.html And /lib/systemd/system/goweb.service [Unit] Description=goweb [Service] Type=forking Restart=always RestartSec=5s ExecStart=/root/go.sh [Install] WantedBy=multi-user.target I dont know what happen now the…

Details

how to check in pandas if element is in column which is an array

I am facing this situation let’s say I have this dataFrame data = [{‘column_1’: 1, ‘column_2’: [‘lala’, ‘lili’, ‘lele’]},{‘column_1’: 5, ‘column_2’:[‘lala’, ‘lili’, ‘lolo’]}] df = pd.DataFrame(data) df column_1 column_2 0 1 [lala, lili, lele] 1 5 [lala, lili, lolo] and I have 3 strings string_1 = ‘lele’ string_2 = ‘lulu’ string_3 = ‘lolo’ how could…

Details

Hibernate Cascade DELETE OneToMany does not work. Referential integrity constraint violation

I have a class Webtoon that contains a list of Episode. It is a one direction relation. @OneToMany(cascade = {CascadeType.ALL}, fetch = FetchType.EAGER) @CollectionTable(name= “list_of_episodes”) List<Episode> listOfEpisodes = new ArrayList<>(); In my Unit test, I created a Webtoon object, then added an episode in the list listOfEpisodes. When I try to delete the Episode using…

Details